C# Class Courses.Buisness.Authentication.AuthenticationService

Inheritance: IAuthenticationService
Mostra file Open project: denismaster/dotnet01 Class Usage Examples

Public Methods

Method 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 method

public AuthenticationService ( Models repository, IPasswordHasher hasher ) : System
repository Models
hasher IPasswordHasher
return System

Find() public method

public Find ( int id ) : User
id int
return Courses.Models.User

Find() public method

public Find ( string username ) : User
username string
return Courses.Models.User

Find() public method

public Find ( string username, string password ) : User
username string
password string
return Courses.Models.User

FindExternal() public method

public FindExternal ( string authKey ) : User
authKey string
return Courses.Models.User

GetIdentity() public method

public GetIdentity ( User user ) : ClaimsIdentity
user Courses.Models.User
return System.Security.Claims.ClaimsIdentity

LinkExternalLogin() public method

public LinkExternalLogin ( User user, string authkey, string providername ) : void
user Courses.Models.User
authkey string
providername string
return void

Register() public method

public Register ( string username, string password ) : bool
username string
password string
return bool

Register() public method

public Register ( string username, string authkey, string provider ) : bool
username string
authkey string
provider string
return bool

UnlinkExternalLogin() public method

public UnlinkExternalLogin ( User user ) : void
user Courses.Models.User
return void