C# Class MonkeyFist.Services.Authenticator

Afficher le fichier Open project: robconery/monkey-fist Class Usage Examples

Méthodes publiques

Méthode Description
AuthenticateUser ( Credentials creds ) : AuthenticationResult
AuthenticateUserByToken ( string token, string ip = "127.0.0.1" ) : AuthenticationResult
Authenticator ( Configuration config = null ) : System
CreateSession ( User user ) : UserSession
EndUserSession ( System.Guid sessionToken ) : bool
FindUserByAuthenticationToken ( ) : User
GetCurrentUser ( System.Guid sessionToken ) : User
HashedPasswordDoesNotMatch ( User user ) : bool
LocateUser ( ) : User
SetUserLoginStats ( User user ) : void
UserAuthenticated ( User user ) : void

Private Methods

Méthode Description
EmailOrPasswordNotPresent ( ) : bool
InvalidLogin ( string message ) : AuthenticationResult

Method Details

AuthenticateUser() public méthode

public AuthenticateUser ( Credentials creds ) : AuthenticationResult
creds Credentials
Résultat AuthenticationResult

AuthenticateUserByToken() public méthode

public AuthenticateUserByToken ( string token, string ip = "127.0.0.1" ) : AuthenticationResult
token string
ip string
Résultat AuthenticationResult

Authenticator() public méthode

public Authenticator ( Configuration config = null ) : System
config Configuration
Résultat System

CreateSession() public méthode

public CreateSession ( User user ) : UserSession
user MonkeyFist.Models.User
Résultat MonkeyFist.Models.UserSession

EndUserSession() public méthode

public EndUserSession ( System.Guid sessionToken ) : bool
sessionToken System.Guid
Résultat bool

FindUserByAuthenticationToken() public méthode

public FindUserByAuthenticationToken ( ) : User
Résultat MonkeyFist.Models.User

GetCurrentUser() public méthode

public GetCurrentUser ( System.Guid sessionToken ) : User
sessionToken System.Guid
Résultat MonkeyFist.Models.User

HashedPasswordDoesNotMatch() public méthode

public HashedPasswordDoesNotMatch ( User user ) : bool
user MonkeyFist.Models.User
Résultat bool

LocateUser() public méthode

public LocateUser ( ) : User
Résultat MonkeyFist.Models.User

SetUserLoginStats() public méthode

public SetUserLoginStats ( User user ) : void
user MonkeyFist.Models.User
Résultat void

UserAuthenticated() public méthode

public UserAuthenticated ( User user ) : void
user MonkeyFist.Models.User
Résultat void