membership-provider

Multi tenant membership provider ASP.NET MVC

Hello, I'm building a multi-tenant app with ASP.NET MVC and have a problem with validating users. Situation I have: -a table with User(ID, Name, FirstName, Email) This table is made, so that a users who is registered in two tenants doesn't need to login again. -a table with Tentantuser(ID, TenantID, UserID (FK to table User), User...

Forgot password using ASP.Net membership provider?

Is it possible to implement a "forgot password" using ASP.Net membership provider? Any sample link is appreciated. Thanks ...

ASP.NET Membership - Need to add custom fields to admin screens

I need to add a Company Name field that is associated with the logins. Later on I need to incorporate that into my existing admin screens for reporting. I just can't figure out how to get this done. I have tried the add a column to the Membership table and modifying the stored procs but the column will not show up. Here is the code of ...

asp.net mvc custom membership provider - strict login cache to one application

I created custom membership provider for asp.net mvc applications and it all works fine except one thing: when logged in to my application, I am also logged in to all other asp.net mvc applications that I run using Visual Studio. I suppose this data is being pulled from cache because when I logout and try to login again in other applicat...

anyone know of a custom membership provider implementation that check password strength against in-built dictionary

I've got an Asp.net MVC app and before being able to go live, the IT have requested for us to comply with their password policy. The flexibility of AspnetSqlMembershipProvider doesn’t quite satisfy the requirement. The password strength and length rules are as follows: one lowercase one Uppercase one number and or special character 8...

Extending the RoleProvider GetRolesForUser()

The GetRolesForUser() method in the RoleProvider takes the user login name and returns the list of roles for that user. But in my application this is not enough, I need a few more pieces of information to be able to get the user's roles. How can I get this extra information into the method? I have it in the Session, but I found out tha...

ClientRoleProvider and role caching...

Hi, Is it possible to disable to the role caching when using the ClientRoleProvider? The application in question is a console application... I've tried setting 'cacheRolesInCookie' to false (I know it's a console app, but I was running low on ideas!) - but it had no affect. ...

Membership provider stopped working on using Membership Provider in ASP.Net MVC

I have a production ASP.Net MVC application that has been using the membership service. It has worked fine, up until today. Nothing has changed on the server, but I now have this error: System.Configuration.Provider.ProviderException: The 'System.Web.Security.SqlMembershipProvider' requires a database schema compatible with schema ver...

ASP.NET user database without web.config connection strings

Hi, I'm wondering whether it's possible to use built in ASP.NET application services (aspnet_user, aspnet_role etc table) without specifying a connection string in a web.config. At the moment I store connection strings externally, but I keep finding hard-coded connection strings all over the web.config xml, various providers etc. It's...

ASP.NET MVC2 and MemberShipProvider: How well do they go together?

I have an existing ASP.NET application with lots of users and a large database. Now I want to have it in MVC 2. I do not want to migrate, I do it more or less from scratch. The database I want to keep and not touch too much. I already have my database tables and I also want to keep my LINQ to SQL-Layer. I didn't use a MembershipProvider...

SQL to create .Net Membership Provider users

Hello, I have a SQL script that creates users in in my database. It uses the .Net membership stored procs. At this point it works fine. The only issue is that the passwords are saved clear text. What should I change here to they are salted/encrypted (Not sure what term to use here) GO DECLARE @return_value int, @UserId uniqueident...

Secure a web service that has Forms Authentication

I have a webservice that's behind form's authentication. The site that hosts the service also serves as a site that requires a user to log in via the login page. I have a second site that needs to be able to access the service that the first site hosts. However, when attempting to access the service, it fails because the service requir...

ASP.NET MVC2 Authentication form with localization

I have two level authentification, first the user enters their nt/password and it is validated by LDAP and afterward I have a custom role provider that make sure the user has access to said page. That being said, in my web.config I have: <authentication mode="Forms"> <forms loginUrl="~/Account.mvc/LogOn" timeout="2880"/> </authentica...

ASP.NET Multiple Login Pages based on which folder user attempts to access

Hi Guys, I have developed an application in ASP.NET 3.5 which utilizes the Membership and Roles Providers and Forms Authentication to manage user access and profiles. There are various area's of this application that are only to be used by an admin users whom login using their email and password and the rest of the users log in using t...

Validating ASP.Net Custom MembershipUser over WCF Causing Unsolicited Service Calls?

Okay,...first the facts. I'm working on an ASP.Net project which validates it's users across a WCF service. I have a CutomMembershipUser class in a shared assembly which inherits from MembershipUser since I'm using a custom membership provider. All this cannot change because it's out of my remit. Here's roughly what's happening. I've...

ASP.Net membership provider

Hi, Is there a way to disable ASP.Net membership provider from using a web.config? Currently it stores a connection string and a sqlMembershipProvider in a web.config which is not where i'd like it to be. Thank you ...

Is it necessary to override the membership and the role providers?

Hi, I'm working on a web app and I don't want to store the connection strings in the web or app config because of the requirements. So far I have found the only way to achieve this - to override the membership and the role providers. I also don't fully understand why do I also have to override a role provider when all authenticatio...

Does using the default ActiveDirectoryMembershipProvier.ChangePassword method alert the PCNS?

We've got a Identity Lifecycle Management 2007 Feature Pack 1 server setup that is syncing our student email accounts with live@edu. We want to allow the students to change their password via the web. When I use the default "ChangePassword" method inside of the ActiveDirectoryMembershipProvider, it does not trigger the password event t...

Session Expires and User is no longer valid

I cache information about the currently logged in user in the session. This info lazy loads whenever a CurrentUser property on my global application class is used. It does this by calling GetUser() on my custom implementation of MembershipProvider, which either loads the user up from the session, or loads the user from the DB and throws ...

Silverlight membership authentication is messed up by upgrading sql express to sql standard.

I have messed up my asp.net membership authentication in SL4 Business applications by upgrading my development computer from sqlexpress to sql-standard. Here's how I did it: Installed win 7/64 bit, installed VS2010, installed Ria services on a new development computer. Upgraded SQL express to SQL standard (I invited problems by doing...