예제 #1
0
 public IdentityController(ICommandDispatcher commandDispatcher, IQueryDispatcher queryDispatcher,
                           IAuthTokensCache authTokensCache, IRefreshTokensService refreshTokensService)
 {
     _commandDispatcher    = commandDispatcher;
     _queryDispatcher      = queryDispatcher;
     _refreshTokensService = refreshTokensService;
     _authTokensCache      = authTokensCache;
 }
예제 #2
0
 public SignInHandler(IPasswordsService passwordService, IAuthTokensService authTokensService,
                      IRefreshTokensService refreshTokensService, IAuthTokensCache cache, IMongoRepository <IdentityDocument, Guid> repository)
 {
     _passwordService      = passwordService;
     _authTokensService    = authTokensService;
     _repository           = repository;
     _cache                = cache;
     _refreshTokensService = refreshTokensService;
 }
예제 #3
0
 public AuthenticationServiceHelper(
     JwtSettings jwtSettings,
     TokenValidationParameters tokenValidationParameters,
     IUsersService userService,
     IRefreshTokensService refreshTokensService)
 {
     _jwtSettings = jwtSettings;
     _tokenValidationParameters = tokenValidationParameters;
     _userService          = userService;
     _refreshTokensService = refreshTokensService;
 }
예제 #4
0
 public AuthService(
     IUsersService userService,
     IEmailSender emailSender,
     IAuthenticationServiceHelper authenticationServiceHelper,
     IRefreshTokensService refreshTokensService,
     IStringHasherService stringHasherService)
 {
     _userService = userService;
     _authenticationServiceHelper = authenticationServiceHelper;
     _refreshTokensService        = refreshTokensService;
     _stringHasherService         = stringHasherService;
     _emailSender = emailSender;
 }
예제 #5
0
 public SessionService(
     UserManager <User> userManager,
     IJwtFactory jwtFactory,
     IOptions <JwtOptions> jwtOptions,
     IRefreshTokensService refreshTokensService,
     ILoggerFactory loggerFactory
     )
 {
     _userManager         = userManager;
     _jwtFactory          = jwtFactory;
     RefreshTokensService = refreshTokensService;
     _jwtOptions          = jwtOptions.Value;
     Logger = loggerFactory.CreateLogger("Auth");
 }
예제 #6
0
 public OAuthService(
     IProfilesService profilesService,
     IIdentitiesService identitiesService,
     IClaimsService claimsService,
     ICodesService codesService,
     IAccessTokensService accessTokensService,
     IRefreshTokensService refreshTokensService,
     ICallbackUriService callbackUriService,
     IUserInfoService userInfoService)
 {
     _profilesService      = profilesService;
     _identitiesService    = identitiesService;
     _claimsService        = claimsService;
     _codesService         = codesService;
     _accessTokensService  = accessTokensService;
     _refreshTokensService = refreshTokensService;
     _callbackUriService   = callbackUriService;
     _userInfoService      = userInfoService;
 }