Beispiel #1
0
 public GetAccessTokenUseCase(IOneTimeAuthenticationTokenReader tokenReader,
                              IAccessTokenCreator accessTokenCreator, IOneTimeAuthenticationTokenDeleter tokenDeleter)
 {
     _tokenReader        = tokenReader;
     _accessTokenCreator = accessTokenCreator;
     _tokenDeleter       = tokenDeleter;
 }
 public AuthenticationService(IContainer container, IAccessTokenCreator tokenCreator, IAuthService authService)
 {
     this.container = container;
     this.tokenCreator = tokenCreator;
     this.authService = authService;
 }
 public void SetUp()
 {
     _dateTimeProviderFake = new DateTimeProviderFake();
     _accessTokenCreator   = new JwtAccessTokenGateway();
     _secret = Environment.GetEnvironmentVariable("HmacSecret");
 }
Beispiel #4
0
 public UserAuthorizationOperationHandler()
 {
     accessTokenCreator   = ServerComponents.GetComponent <IAccessTokenCreator>().AssertNotNull();
     accessTokenExistence = ServerComponents.GetComponent <IAccessTokenExistence>().AssertNotNull();
 }
Beispiel #5
0
 public AuthenticationService(IContainer container, IAccessTokenCreator tokenCreator, IAuthService authService)
 {
     this.container    = container;
     this.tokenCreator = tokenCreator;
     this.authService  = authService;
 }