Some Advice on Writing a customer Membership Provider



Hello All,

I think I need to implement my own membership provider, but I am not sure.

Here is the situation:
I am creating an Intranet App and I have 2 different users, Active Directory
(Internal Office) and users that I don't want in active directory, I will
call these "Stores" that are located off the network on a VPN.

This is what I want to happen:
When an Internal Office user accesses the site, I want to use Windows
Authentication, since it will know who they are via there LogonUserIdentity.
If the same user is out on the road and accesses the VPN via ther laptop, I
want them to be able to Login using AD and therefore use Forms
Authentication.

When a "Store" comes to the page I want to use an exsisting data store on
SQL Server to authenticate them.

I also want to use this same data store to hold personalization settings for
AD and "Store" users.

The only way I can think of to do this is:

1. Use "Forms Authentication"
2. Use a login control
3. Somehow override the login control when a user enters the site in with a
valid Request.UserLoginIdentity, and "auto login" so they arent prompted
with user and pass.
4. When a user enters the site without a valid UserLoginIdentity then prompt
with Login control, user and pass. If the username is a "Store", which can
be determined by IPAddress, then use the Data Store, if not then use AD
authentication.

If I can get the above to work that would be great!

I have tried to create my own provider class too. I just cannot get it to
work, I don't think the web app is even accessing it, I set break points in
the class even in the Initialize method and its not even hit.

Some advice on how I should do this would be great!

Thanks,
Bryan



.



Relevant Pages

  • Re: ADAM - SSO and provisioning considerations
    ... install an OU, do LDAP bind's to AD for authentication, and used some ... The above illustrates why you don't need ADAM. ... store for your identity store. ... they are all in the customer's identity store. ...
    (microsoft.public.windows.server.active_directory)
  • Re: Performance setting roles in Application_authenticateRequest
    ... I found out the "preferred" way is to store a user's roles in their ... UserData as part of their authentication ticket. ... Jim Ross does it perfectly here (could not find the original thread on ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: Windows Authentication (asp.net 1.1 C#)
    ... it is up to you how you store your passwords - FormsAuth is just a mechanism ... Usually you store the passwords in a database using salted hashes - have a look at PasswordDeriveBytes class ... Authentication or Form Authentication. ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • RE: Storing Role And User Id in UserData of FormAuthentication
    ... > i have a asp.net app that uses formsauthentication, ... > field we store the role value of what the user is (ie admin, user, ... > authentication). ... > just store the "roles" in the user data field, ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: What WSE2 offers for this problem?
    ... The authentication has two parts, ... > client tokens against a credential store. ... >> 4) Can query our internal Active Directory to authenticate our ... >> sign on startegy for all our applicationsm to use this webserivce to ...
    (microsoft.public.dotnet.framework.webservices.enhancements)