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"); }
public UserAuthorizationOperationHandler() { accessTokenCreator = ServerComponents.GetComponent <IAccessTokenCreator>().AssertNotNull(); accessTokenExistence = ServerComponents.GetComponent <IAccessTokenExistence>().AssertNotNull(); }