C# 클래스 TokenAuthentication.Services.AuthenticationService

Simple Database-based Authentification Service.
상속: BaseService, IAuthenticationService
파일 보기 프로젝트 열기: bytefish/NancyOwinExample

공개 메소드들

메소드 설명
AuthenticationService ( IDatabaseFactory databaseFactory, ICryptoService cryptoService ) : System.Collections.Generic
TryAuthentifcate ( Credentials credentials, Model &identity ) : bool

비공개 메소드들

메소드 설명
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.

메소드 상세

AuthenticationService() 공개 메소드

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

TryAuthentifcate() 공개 메소드

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