membership-provider

Can I use OpenId with the ASP MembershipProvider?

I have a ASP.Net 2.0 website that is currently using a custom MembershipProvider and the standard login control. I would like to replace the login control with the one from DotNetOpenId. I override the ValidateUser which checks the username and password, but I shouldn't need to implement this when using OpenId. Is it possible to use O...

SqlMembershipProvider initialize method not being called

I have done a custom implementation of MembershipProvider but for some reason the initialize method is not being invoked and thus my provider is not setting up properly from the config parameters, who invokes it in the first place and how do i get it to work. ...

Do MembershipProviders in ASP.net MVC affect stylesheet links?

I changed the MembershipProvider in my ASP.net MVC website, and now the stylesheet for the login page isn't referenced correctly. Below is a copy of the forms tag in my web.config if that could be the reason. It looks identical though to the one generated by a new project with the exception of the name and timeout attribute. <authentica...

How can I get the minimum required password length value from Active Directory in .NET

I'm implementing a plugin architecture to implement authentication an external authentication mechanism for a web site. One of the plugins I plan to provide is an ActiveDirectory plugin. I'd like to implement some of the features of a MembershipProvider, including MinRequiredPasswordLength, but don't want to fully implement or configur...

Custom MembershipProvider Initialize method

When overriding the MembershipProvider and calling it directly, is there a way to fill the NameValueCollection config parameter of the Initialize method without manually looking through the config file for the settings? Obviously this Initialize is being called by asp.net and the config is being filled somewhere. I have implemented my...

ASP.net Profiles and Membership - Custom Providers or should completely I roll my own?

Hello, first off, I know that this question could be borderline-duplicate to this one, and yes, it is a bit ironic that I am asking a question for something that I even answered myself. Now, I am talking about ASP.net Profiles. I am building an application using MVC if that matters, and I believe that the built-in Profile Provider is u...

How do you change a hashed password using asp.net membership provider if you don't know the current password?

Problem, there's no method: bool ChangePassword(string newPassword); You have to know the current password (which is probably hashed and forgotten). ...

Ensuring only one user login using ASP.Net Membership Provider

How would you ensure that only one user is logged in per account at a time? Assuming cookies are persistent. ...

Authenticate and GetRoles of ActiveDirectory users in a disconnected WPF application via MembershipProvider

Hello, I have a project requirement where I need to authenticate against ActiveDirectory in a remote/disconnected WPF application. There is probably several ways to attempt to do this, but what would be the best approach using ActiveDirectory's MembershipProvider? I need to: Authenticate that the user exists. obtain the AD user's gr...

Locking out a user in an ASP .Net Custom Membership Provider

I've had to create a custom membership provider for my current ASP .Net project in order to fit in with our database schema, and am having problems configuring it to lockout a user if they get their password wrong three times, as is supported by the standard providers. Is this something I need to implement myself, or should it be suppor...

Is it ok to use .NET MembershipProvider to have multiple virtual "applications" on one web application?

I want to build portal-like asp.net web application from scratch and was looking at asp.net MembershipProvider as a standard way for user's management. I created my provider inheriting from SqlMembershipProvider and override ValidateUser method: public override bool ValidateUser(string username, string password) { ...

How do I deploy an ASP.net custom MembershipProvider?

I've written a custom MembershipProvider that uses a custom database schema for storing the members, but I am having trouble figuring out how to deploy the provider. My target server is running IIS7, and I am able to navigate to a dialog for a adding a .NET User Provider, but instead of allowing me to select the assembly containing the ...

ASP.NET: Does implementing a custom MembershipProvider class needs you to implement a custom Membership class too?

Hi! I have this question: "Does implementing a custom MembershipProvider class needs you to implement a custom Membership class too?" I am a bit confused about implementing a custom membership framework on ASP.NET. I dont have sample classes to show you but what if the previous website used a database or schema that is different to the ...

Associating multiple e-mail addresses with ASP.NET MembershipProvider accounts

For a project I am currently working on, I am interested in allowing users to provide multiple e-mail addresses, both for contact purposes as well as providing address book-based social matching. I plan to write a custom membership provider (aspnet_Membership table is too heavy for my liking), but the MembershipProvider system only allow...

ASP.NET Membership provider with SQL schema's

I would like to use the ASP.NET Membership Provider security framework but would like it to use SQL Server schema's. So instead of having tables such as aspnet_Membership I would prefer it to be something like sec.Membership. Has anyone tried this and got it to work? ...

Search ASP.Net Profiles

I am looking for a way to search through every users profile using the standard ASP.Net Profile Provider. Is this possible, or should I create a new Profile Provider? Here is the scenario: User registers User sets up their profile (favorite color, favorite book, country, etc) User is then able to browse other users who, for instance,...

ASP.NET Membership Issues With Registration

I'm having a rough time with this membership stuff. OK, so, it's really odd. I can register a user. I can register, I can login. However, when I go to register ANOTHER user the user isn't saved in the database and I get a Membership credential verification failed event when the user tries to login (I assume because the user is never b...

Easiest way to implement this dynamic login scheme for asp.net

I currently have a site where different users can login, and depending on their sub domain, are presented with different data from different databases. I am overriding the SqlMembershipProvider to use a "temp" connection string, that I dynamically set during the Initialize Method, per this post's instructions: http://forums.asp.net/p/9...

Custom .NET authentication, membership, profile provider for portlets?

I am wondering if it is possible to leverage the Authentication, Membership, and/or Profile provider features in .NET to help integrate .NET web apps into my company's enterprise portal. In a nutshell, the portal sends custom header values to any application that is 'behind' the portal for fields like the username, user profile data, an...

How do you handle Membership/Roles when using NHibernate?

I'm about to kick off a new project using NHibernate and ASP.Net MVC and have come upon the question of membership. I'm wondering if I should use a 3rd party NHibernate Membership/Role provider, create my own, or just skip the providers all together. So far I've looked at: Manuel Abadia's NHCustomProviders - It seems like a lot of conf...