/// <summary>
 /// Initializes a new instance of the <see cref="AuthenticationModule"/> class.
 /// </summary>
 /// <param name="logger">The <see cref="ILogger{AuthenticationModule}"/></param>
 /// <param name="userManager">The <see cref="UserManager{ApplicationUser}"/></param>
 public AuthenticationModule(
     ICallistoSession session,
     ILogger <AuthenticationModule> logger,
     IAuthenticationRepository authRepo,
     UserManager <ApplicationUser> userManager,
     SignInManager <ApplicationUser> signInManager,
     IJwtFactory jwtFactory,
     IOptions <JwtIssuerOptions> jwtOptions)
 {
     Session       = session;
     Logger        = logger;
     AuthRepo      = authRepo;
     UserManager   = userManager;
     SignInManager = signInManager;
     JwtFactory    = jwtFactory;
     JwtOptions    = jwtOptions?.Value ?? throw new ArgumentException(nameof(jwtOptions));
 }
Пример #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="AuthController"/> class.
 /// </summary>
 /// <param name="session">The <see cref="ICallistoSession"/></param>
 public AuthController(ICallistoSession session)
 {
     CallistoSession = session;
 }