views:

40

answers:

0

Hey guys,

I wanted some guidance on how to implement a custom membership provier to allow users to be authenticated for each client. Where a client can have many users, so the user will select a client and then authenticate against the client.

I suspect I will need to create a customer membership provider and override this function:

Public Overrides bool ValidateUser( _username, _password, _clientId);

Is this the correct way to do it ?

Also I am confused where I put my client table, so do I put it in the ASPNETDB.MDF database or my application database ? And do I just add a ClientId FK column in the aspnet_Membership table ?