Created
May 2, 2012 22:33
-
-
Save benfoster/2581054 to your computer and use it in GitHub Desktop.
Is Authentication really that complicated.....
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
IAuthenticationService | |
bool IsValidLogin(string username, string password); | |
bool CreateLogin(string username, string password); | |
string GeneratePasswordResetToken(string username, int lifeInMinutes); | |
bool ResetPassword(string username, string token, string newPassword); | |
IMembershipService | |
UserProfile FindUserWithLogin(string provider, string providerId); | |
UserProfile Register(string name, string email, string provider, string providerId); | |
UserProfile | |
Name | |
Logins | |
ProviderLogin | |
ProviderId | |
ProviderUserId | |
E.g. | |
ProviderId: Local, ProviderUserId: foo@bar.com | |
ProviderId: TwitterOAuth, ProviderUserId: 123456 | |
ProviderId: OpenID, ProviderUserId: myname.myopenid.com |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment