public ResourceOwnerCredentialsTokenGenerator( IAuthenticateUserService authenticateUserService, IAuthenticateClientService applicationService, IAccessTokenRepository accessTokenRepository, IJwtTokenFactory jwtTokenFactory) { _authenticateUserService = authenticateUserService; _authenticateClientService = applicationService; _accessTokenRepository = accessTokenRepository; _jwtTokenFactory = jwtTokenFactory; }
public AuthorizeService( IFindApplicationService findApplicationService, IAuthenticateUserService authenticateUserService, IAuthorizationCodeRepository authorizationCodeRepository, IPasswordGenerator passwordGenerator, OAuth2Settings settings) { _findApplicationService = findApplicationService; _authenticateUserService = authenticateUserService; _authorizationCodeRepository = authorizationCodeRepository; _passwordGenerator = passwordGenerator; _settings = settings; }
public AuthController(IAuthenticateUserService authenticationService) { _authenticationService = authenticationService; }
/// <summary> /// Initializes a new instance of the <see cref="DigestAuthenticator"/> class. /// </summary> /// <param name="realmRepository">Used to lookup the realm for a HTTP request</param> /// <param name="userService">Supplies users during authentication process.</param> public DigestAuthenticator(IRealmRepository realmRepository, IAuthenticateUserService userService) { _realmRepository = realmRepository; _userService = userService; }
public LoginController(IAuthenticateUserService <UsernamePasswordCredentials> authUserService) { _authUserService = authUserService ?? throw new ArgumentNullException(nameof(authUserService)); }
public BasicAuthentication(IAuthenticateUserService userService, string realm) { _userService = userService; _realm = realm; }
public void Initialise() { userServiceMock = MockRepository.GenerateMock<IAuthenticateUserService>(); completedWorkOrderRepositoryMock = MockRepository.GenerateMock<ICompletedWorkOrderRepository>(); }
//IAuditLogger from the Shared Kernel can be injected here as well public CompletedWorkOrderApplicationService(IAuthenticateUserService authenticationService, ICompletedWorkOrderRepository completedWorkOrderRepository) { this.authenticationService = authenticationService; this.completedWorkOrderRepository = completedWorkOrderRepository; }