C# Class TokenAuthentication.Services.AuthenticationService

Simple Database-based Authentification Service.
Inheritance: BaseService, IAuthenticationService
Afficher le fichier Open project: bytefish/NancyOwinExample

Méthodes publiques

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

Private Methods

Méthode 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 méthode

public AuthenticationService ( IDatabaseFactory databaseFactory, ICryptoService cryptoService ) : System.Collections.Generic
databaseFactory IDatabaseFactory
cryptoService ICryptoService
Résultat System.Collections.Generic

TryAuthentifcate() public méthode

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