コード例 #1
0
ファイル: AuthController.cs プロジェクト: crazyants/toucan
 public AuthController(IAntiforgery antiForgeryService, ILocalAuthenticationService authService, CultureService cultureService, IOptions <Toucan.Server.Config> serverConfig, ISignupService signupService, ITokenProviderService <Token> tokenService, IDomainContextResolver resolver, ILocalizationService localization) : base(resolver, localization)
 {
     this.antiForgeryService = antiForgeryService;
     this.authService        = authService;
     this.cultureService     = cultureService;
     this.serverConfig       = serverConfig.Value;
     this.signupService      = signupService;
     this.tokenService       = tokenService;
 }
コード例 #2
0
 public AuthController(IAntiforgery antiForgeryService, ILocalAuthenticationService authService, IOptions <Toucan.Server.Config> serverConfig, ISignupService signupService, IVerificationProvider verificationProvider, ITokenProviderService <Token> tokenService)
 {
     this.antiForgeryService   = antiForgeryService;
     this.authService          = authService;
     this.serverConfig         = serverConfig.Value;
     this.signupService        = signupService;
     this.tokenService         = tokenService;
     this.verificationProvider = verificationProvider;
 }
コード例 #3
0
 public OAuthUserInfoService(HttpClient client, ILogger <OAuthUserInfoService> logger,
                             IConfiguration configuration, ICache <OAuthUser> cache, ITokenProviderService tokenProviderService)
 {
     _client               = client ?? throw new ArgumentNullException(nameof(client));
     _logger               = logger ?? throw new ArgumentNullException(nameof(logger));
     _configuration        = configuration ?? throw new ArgumentNullException(nameof(configuration));
     _cache                = cache ?? throw new ArgumentNullException(nameof(cache));
     _tokenProviderService = tokenProviderService ?? throw new ArgumentNullException(nameof(tokenProviderService));
 }
コード例 #4
0
 public ManageController(IOptions <ConfigSettings> ConfigurationSettings,
                         UserManager <ApplicationUser> UserManager,
                         IEmailService EmailService,
                         ITokenProviderService TokenProviderService)
 {
     _configSettings       = ConfigurationSettings.Value;
     _userManager          = UserManager;
     _emailManager         = EmailService;
     _tokenProviderService = TokenProviderService;
 }
コード例 #5
0
 public AuthService(
     IRepository <User> userRepository,
     ITokenProviderService tokenProvider,
     IPasswordHasher passwordHasher
     )
 {
     this.userRepository = userRepository;
     this.tokenProvider  = tokenProvider;
     this.passwordHasher = passwordHasher;
 }
コード例 #6
0
 public IdentityController(
     RAISClient client,
     ITokenProviderService tokenProviderService,
     IIdentityService identityService,
     ILogger <IdentityController> logger)
 {
     _RAISHttpClient       = client;
     _tokenProviderService = tokenProviderService;
     _identityService      = identityService;
     _logger = logger ?? throw new ArgumentNullException(nameof(logger));
 }
コード例 #7
0
        public AccountController(UserManager <ApplicationUser> UserManager,
                                 SignInManager <ApplicationUser> SignInManager,
                                 IEmailService EmailManager,
                                 IOptions <ConfigSettings> ConfigSettings,
                                 ITokenProviderService TokenProviderService,
                                 IReferralCodeService ReferralCodeService)

        {
            this._userManager         = UserManager;
            this._signInManager       = SignInManager;
            this._emailManager        = EmailManager;
            this._configSettings      = ConfigSettings.Value;
            this._tokenManager        = TokenProviderService;
            this._referralCodeService = ReferralCodeService;
        }
コード例 #8
0
 public ProfileController(IOptions <ConfigSettings> ConfigurationSettings,
                          SignInManager <ApplicationUser> SignInManager,
                          UserManager <ApplicationUser> UserManager,
                          IEmailService EmailService,
                          IProfileService ProfileService,
                          IBlobService BlobService,
                          ITokenProviderService TokenProviderService,
                          IVenueService VenueService,
                          IBookingService BookingService)
 {
     _configSettings       = ConfigurationSettings.Value;
     _userManager          = UserManager;
     _signInManager        = SignInManager;
     _emailManager         = EmailService;
     _blobManager          = BlobService;
     _profileManager       = ProfileService;
     _tokenProviderService = TokenProviderService;
     _bookingService       = BookingService;
     _venueService         = VenueService;
 }
コード例 #9
0
 public UserService(ILogger logger, IMapper mapper,
                    IServiceProvider serviceProvider,
                    IUserDomainService userDomainService,
                    IAuthorizationStatusValidator authorizationStatusValidator,
                    ITokenProviderService tokenProviderService,
                    AuthApiUrlConfiguration authApiUrlConfiguration,
                    PasswordConfiguration passwordConfiguration,
                    IPasswordHistoryService passwordHistoryService,
                    IEmailService emailService,
                    IEmailTemplateProvider emailTemplateProvider,
                    EmailTemplatesConfiguration emailTemplatesConfiguration)
     : base(logger, mapper, serviceProvider)
 {
     _userDomainService            = userDomainService;
     _authorizationStatusValidator = authorizationStatusValidator;
     _tokenProviderService         = tokenProviderService;
     _authApiUrlConfiguration      = authApiUrlConfiguration;
     _passwordConfiguration        = passwordConfiguration;
     _passwordHistoryService       = passwordHistoryService;
     _emailService                = emailService;
     _emailTemplateProvider       = emailTemplateProvider;
     _emailTemplatesConfiguration = emailTemplatesConfiguration;
 }
コード例 #10
0
 public ExternalAuthControllerController(IExternalAuthenticationService externalAuthService, IMemoryCache cache, ITokenProviderService <Token> tokenService)
 {
     this.externalAuthService = externalAuthService;
     this.cache        = cache;
     this.tokenService = tokenService;
 }
コード例 #11
0
 public ExternalAuthControllerController(IExternalAuthenticationService externalAuthService, IMemoryCache cache, ITokenProviderService <Token> tokenService, IDomainContextResolver resolver, ILocalizationService localization) : base(resolver, localization)
 {
     this.cache = cache;
     this.externalAuthService = externalAuthService;
     this.tokenService        = tokenService;
 }
コード例 #12
0
 public AccountController(ITokenProviderService tokenProvider, UserManager <SysUsers> userManager)
 {
     _tokenProvider = tokenProvider;
     _userManager   = userManager;
 }
コード例 #13
0
 public TokenBuilderService(ITokenProviderService tokenProviderService, IOptions <AppSettings> settings)
 {
     _settings             = settings;
     _tokenProviderService = tokenProviderService;
 }
コード例 #14
0
 public AuthenticationService(ITokenProviderService tokenProvider)
 {
     _tokenProvider = tokenProvider;
 }
コード例 #15
0
 public Authenticator(TaskManagementAuthenticationHttpClient authenticationClient, ITokenProviderService tokenProvider, TaskManagementAccountsHttpClient accountClient)
 {
     _authenticationClient = authenticationClient;
     _tokenProvider        = tokenProvider;
     _accountClient        = accountClient;
 }
コード例 #16
0
ファイル: ProfileController.cs プロジェクト: wangyuzhu/toucan
 public ProfileController(CultureService cultureService, IManageProfileService profileService, ITokenProviderService <Token> tokenService, IDomainContextResolver resolver, ILocalizationService localization) : base(resolver, localization)
 {
     this.cultureService = cultureService;
     this.profileService = profileService;
     this.tokenService   = tokenService;
 }