Esempio n. 1
0
 public ResourceOwnerCredentialsTokenGenerator(
     IAuthenticateUserService authenticateUserService,
     IAuthenticateClientService applicationService,
     IAccessTokenRepository accessTokenRepository,
     IJwtTokenFactory jwtTokenFactory)
 {
     _authenticateUserService   = authenticateUserService;
     _authenticateClientService = applicationService;
     _accessTokenRepository     = accessTokenRepository;
     _jwtTokenFactory           = jwtTokenFactory;
 }
Esempio n. 2
0
 public AuthorizeService(
     IFindApplicationService findApplicationService,
     IAuthenticateUserService authenticateUserService,
     IAuthorizationCodeRepository authorizationCodeRepository,
     IPasswordGenerator passwordGenerator,
     OAuth2Settings settings)
 {
     _findApplicationService      = findApplicationService;
     _authenticateUserService     = authenticateUserService;
     _authorizationCodeRepository = authorizationCodeRepository;
     _passwordGenerator           = passwordGenerator;
     _settings = settings;
 }
Esempio n. 3
0
 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;
 }
Esempio n. 5
0
 public LoginController(IAuthenticateUserService <UsernamePasswordCredentials> authUserService)
 {
     _authUserService = authUserService ?? throw new ArgumentNullException(nameof(authUserService));
 }
 public BasicAuthentication(IAuthenticateUserService userService, string realm)
 {
     _userService = userService;
     _realm = realm;
 }
 /// <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 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;
 }