C# Class Courses.Buisness.Authentication.AuthenticationService

Inheritance: IAuthenticationService
Afficher le fichier Open project: denismaster/dotnet01 Class Usage Examples

Méthodes publiques

Méthode Description
AuthenticationService ( Models repository, IPasswordHasher hasher ) : System
Find ( int id ) : User
Find ( string username ) : User
Find ( string username, string password ) : User
FindExternal ( string authKey ) : User
GetIdentity ( User user ) : ClaimsIdentity
LinkExternalLogin ( User user, string authkey, string providername ) : void
Register ( string username, string password ) : bool
Register ( string username, string authkey, string provider ) : bool
UnlinkExternalLogin ( User user ) : void

Method Details

AuthenticationService() public méthode

public AuthenticationService ( Models repository, IPasswordHasher hasher ) : System
repository Models
hasher IPasswordHasher
Résultat System

Find() public méthode

public Find ( int id ) : User
id int
Résultat Courses.Models.User

Find() public méthode

public Find ( string username ) : User
username string
Résultat Courses.Models.User

Find() public méthode

public Find ( string username, string password ) : User
username string
password string
Résultat Courses.Models.User

FindExternal() public méthode

public FindExternal ( string authKey ) : User
authKey string
Résultat Courses.Models.User

GetIdentity() public méthode

public GetIdentity ( User user ) : ClaimsIdentity
user Courses.Models.User
Résultat System.Security.Claims.ClaimsIdentity

LinkExternalLogin() public méthode

public LinkExternalLogin ( User user, string authkey, string providername ) : void
user Courses.Models.User
authkey string
providername string
Résultat void

Register() public méthode

public Register ( string username, string password ) : bool
username string
password string
Résultat bool

Register() public méthode

public Register ( string username, string authkey, string provider ) : bool
username string
authkey string
provider string
Résultat bool

UnlinkExternalLogin() public méthode

public UnlinkExternalLogin ( User user ) : void
user Courses.Models.User
Résultat void