C# Class TokenAuthentication.Services.AuthenticationService

Simple Database-based Authentification Service.
Inheritance: BaseService, IAuthenticationService
ファイルを表示 Open project: bytefish/NancyOwinExample

Public Methods

Method Description
AuthenticationService ( IDatabaseFactory databaseFactory, ICryptoService cryptoService ) : System.Collections.Generic
TryAuthentifcate ( Credentials credentials, Model &identity ) : bool

Private Methods

Method Description
Convert ( Claim entity ) : ClaimIdentity

Converts between Model and DB Entity.

Convert ( IList entities ) : IList

Converts between Model and DB Entity.

Convert ( User user, IList claims ) : UserIdentity

Converts between Model and DB Entity.

Method Details

AuthenticationService() public method

public AuthenticationService ( IDatabaseFactory databaseFactory, ICryptoService cryptoService ) : System.Collections.Generic
databaseFactory IDatabaseFactory
cryptoService ICryptoService
return System.Collections.Generic

TryAuthentifcate() public method

public TryAuthentifcate ( Credentials credentials, Model &identity ) : bool
credentials TokenAuthentication.Infrastructure.Authentication.Credentials
identity Model
return bool