コード例 #1
0
 public AuthenticationController(UserManager <IdentityUser> userManager,
                                 SignInManager <IdentityUser> signInManager,
                                 ICryptography cryptography,
                                 IConfiguration configuration,
                                 ILogger <AuthenticationController> logger,
                                 ICodesServices codesServices)
 {
     this.userManager       = userManager;
     this.logger            = logger;
     authenticationStrategy = new AuthenticationStrategy(userManager, signInManager, cryptography, configuration, logger, codesServices);
 }
コード例 #2
0
 public AuthenticationStrategy(UserManager <IdentityUser> userManager,
                               SignInManager <IdentityUser> signInManager,
                               ICryptography cryptography,
                               IConfiguration configuration,
                               ILogger <AuthenticationController> logger,
                               ICodesServices codesServices)
 {
     UserManager    = userManager;
     SignInManager  = signInManager;
     Cryptography   = cryptography;
     Configuration  = configuration;
     Logger         = logger;
     CodesServices  = codesServices;
     MobileAppToken = configuration["MobileApp:Token"];
 }
コード例 #3
0
 public CodesGeneratorService(ILogger <CodesGeneratorService> logger, IServiceScopeFactory factory)
 {
     this.logger   = logger;
     this.factory  = factory;
     codesServices = GetService <ICodesServices>();
 }
コード例 #4
0
 public SecurityCodeController(ICodesServices codesServices)
 {
     this.codesServices = codesServices;
 }