C# Class nonintanon.Security.GuidExtendedMembershipProvider

Inheritance: System.Web.Security.MembershipProvider
ファイルを表示 Open project: nonintanon/SimpleGuidMembershipProvider Class Usage Examples

Public Methods

Method Description
ConfirmAccount ( string accountConfirmationToken ) : bool
ConfirmAccount ( string userName, string accountConfirmationToken ) : bool
CreateAccount ( string userName, string password ) : string
CreateAccount ( string userName, string password, bool requireConfirmationToken ) : string
CreateOrUpdateOAuthAccount ( string provider, string providerUserId, string userName ) : void

Creates a new OAuth account with the specified data or update an existing one if it already exists.

CreateUserAndAccount ( string userName, string password ) : string
CreateUserAndAccount ( string userName, string password, object>.IDictionary values ) : string
CreateUserAndAccount ( string userName, string password, bool requireConfirmation ) : string
CreateUserAndAccount ( string userName, string password, bool requireConfirmation, object>.IDictionary values ) : string
DeleteAccount ( string userName ) : bool
DeleteOAuthAccount ( string provider, string providerUserId ) : void

Deletes the OAuth and OpenID account with the specified provider name and provider user id.

DeleteOAuthToken ( string token ) : void

Deletes the OAuth token from the backing store from the database.

GeneratePasswordResetToken ( string userName ) : string
GeneratePasswordResetToken ( string userName, int tokenExpirationInMinutesFromNow ) : string
GetAccountsForUser ( string userName ) : ICollection

Gets all OAuth accounts associated with the specified username

GetCreateDate ( string userName ) : System.DateTime
GetLastPasswordFailureDate ( string userName ) : System.DateTime
GetOAuthTokenSecret ( string token ) : string

Gets the OAuth token secret from the specified OAuth token.

GetPasswordChangedDate ( string userName ) : System.DateTime
GetPasswordFailuresSinceLastSuccess ( string userName ) : int
GetUserIdFromOAuth ( string provider, string providerUserId ) : System.Guid

Gets the id of the user with the specified provider name and provider user id.

GetUserIdFromPasswordResetToken ( string token ) : System.Guid
GetUserNameFromId ( System.Guid userId ) : string

Gets the username of a user with the given id

HasLocalAccount ( System.Guid userId ) : bool

Determines whether there exists a local account (as opposed to OAuth account) with the specified userId.

IsConfirmed ( string userName ) : bool
ReplaceOAuthRequestTokenWithAccessToken ( string requestToken, string accessToken, string accessTokenSecret ) : void

Replaces the request token with access token and secret in the database.

ResetPasswordWithToken ( string token, string newPassword ) : bool
StoreOAuthRequestToken ( string requestToken, string requestTokenSecret ) : void

Stores the specified token and secret into database.

Private Methods

Method Description
VerifyInitialized ( ) : void

Method Details

ConfirmAccount() public abstract method

public abstract ConfirmAccount ( string accountConfirmationToken ) : bool
accountConfirmationToken string
return bool

ConfirmAccount() public abstract method

public abstract ConfirmAccount ( string userName, string accountConfirmationToken ) : bool
userName string
accountConfirmationToken string
return bool

CreateAccount() public method

public CreateAccount ( string userName, string password ) : string
userName string
password string
return string

CreateAccount() public abstract method

public abstract CreateAccount ( string userName, string password, bool requireConfirmationToken ) : string
userName string
password string
requireConfirmationToken bool
return string

CreateOrUpdateOAuthAccount() public method

Creates a new OAuth account with the specified data or update an existing one if it already exists.
public CreateOrUpdateOAuthAccount ( string provider, string providerUserId, string userName ) : void
provider string The provider.
providerUserId string The provider userid.
userName string The username.
return void

CreateUserAndAccount() public method

public CreateUserAndAccount ( string userName, string password ) : string
userName string
password string
return string

CreateUserAndAccount() public method

public CreateUserAndAccount ( string userName, string password, object>.IDictionary values ) : string
userName string
password string
values object>.IDictionary
return string

CreateUserAndAccount() public method

public CreateUserAndAccount ( string userName, string password, bool requireConfirmation ) : string
userName string
password string
requireConfirmation bool
return string

CreateUserAndAccount() public abstract method

public abstract CreateUserAndAccount ( string userName, string password, bool requireConfirmation, object>.IDictionary values ) : string
userName string
password string
requireConfirmation bool
values object>.IDictionary
return string

DeleteAccount() public abstract method

public abstract DeleteAccount ( string userName ) : bool
userName string
return bool

DeleteOAuthAccount() public method

Deletes the OAuth and OpenID account with the specified provider name and provider user id.
public DeleteOAuthAccount ( string provider, string providerUserId ) : void
provider string The provider.
providerUserId string The provider user id.
return void

DeleteOAuthToken() public method

Deletes the OAuth token from the backing store from the database.
public DeleteOAuthToken ( string token ) : void
token string The token to be deleted.
return void

GeneratePasswordResetToken() public method

public GeneratePasswordResetToken ( string userName ) : string
userName string
return string

GeneratePasswordResetToken() public abstract method

public abstract GeneratePasswordResetToken ( string userName, int tokenExpirationInMinutesFromNow ) : string
userName string
tokenExpirationInMinutesFromNow int
return string

GetAccountsForUser() public abstract method

Gets all OAuth accounts associated with the specified username
public abstract GetAccountsForUser ( string userName ) : ICollection
userName string Name of the user.
return ICollection

GetCreateDate() public abstract method

public abstract GetCreateDate ( string userName ) : System.DateTime
userName string
return System.DateTime

GetLastPasswordFailureDate() public abstract method

public abstract GetLastPasswordFailureDate ( string userName ) : System.DateTime
userName string
return System.DateTime

GetOAuthTokenSecret() public method

Gets the OAuth token secret from the specified OAuth token.
public GetOAuthTokenSecret ( string token ) : string
token string The token from which to retrieve secret.
return string

GetPasswordChangedDate() public abstract method

public abstract GetPasswordChangedDate ( string userName ) : System.DateTime
userName string
return System.DateTime

GetPasswordFailuresSinceLastSuccess() public abstract method

public abstract GetPasswordFailuresSinceLastSuccess ( string userName ) : int
userName string
return int

GetUserIdFromOAuth() public method

Gets the id of the user with the specified provider name and provider user id.
public GetUserIdFromOAuth ( string provider, string providerUserId ) : System.Guid
provider string The provider.
providerUserId string The provider user id.
return System.Guid

GetUserIdFromPasswordResetToken() public abstract method

public abstract GetUserIdFromPasswordResetToken ( string token ) : System.Guid
token string
return System.Guid

GetUserNameFromId() public method

Gets the username of a user with the given id
public GetUserNameFromId ( System.Guid userId ) : string
userId System.Guid The user id.
return string

HasLocalAccount() public method

Determines whether there exists a local account (as opposed to OAuth account) with the specified userId.
public HasLocalAccount ( System.Guid userId ) : bool
userId System.Guid The user id to check for local account.
return bool

IsConfirmed() public abstract method

public abstract IsConfirmed ( string userName ) : bool
userName string
return bool

ReplaceOAuthRequestTokenWithAccessToken() public method

Replaces the request token with access token and secret in the database.
public ReplaceOAuthRequestTokenWithAccessToken ( string requestToken, string accessToken, string accessTokenSecret ) : void
requestToken string The request token.
accessToken string The access token.
accessTokenSecret string The access token secret.
return void

ResetPasswordWithToken() public abstract method

public abstract ResetPasswordWithToken ( string token, string newPassword ) : bool
token string
newPassword string
return bool

StoreOAuthRequestToken() public method

Stores the specified token and secret into database.
public StoreOAuthRequestToken ( string requestToken, string requestTokenSecret ) : void
requestToken string The token.
requestTokenSecret string The secret.
return void