Exemple #1
0
 public AdapterAuthenticationHandler(IOptionsMonitor <CookieAuthenticationOptions> options, ILoggerFactory logger, UrlEncoder encoder, ISystemClock clock, OneTimeTokenService oneTimeTokenService, IAzureSessionService azureSessionService, IUserRepository userRepository, IDeploymentScopeRepository deploymentScopeRepository, IAdapterProvider adapterProvider) : base(options, logger, encoder, clock)
 {
     this.oneTimeTokenService       = oneTimeTokenService ?? throw new System.ArgumentNullException(nameof(oneTimeTokenService));
     this.azureSessionService       = azureSessionService ?? throw new System.ArgumentNullException(nameof(azureSessionService));
     this.userRepository            = userRepository ?? throw new System.ArgumentNullException(nameof(userRepository));
     this.deploymentScopeRepository = deploymentScopeRepository ?? throw new System.ArgumentNullException(nameof(deploymentScopeRepository));
     this.adapterProvider           = adapterProvider ?? throw new System.ArgumentNullException(nameof(adapterProvider));
 }
Exemple #2
0
 public DeploymentScopesAuthorizationController(OneTimeTokenService oneTimeTokenService, IAdapterProvider adapterProvider, IAuthorizationEndpointsResolver authorizationEndpointsResolver) : base()
 {
     this.oneTimeTokenService            = oneTimeTokenService ?? throw new ArgumentNullException(nameof(oneTimeTokenService));
     this.adapterProvider                = adapterProvider ?? throw new ArgumentNullException(nameof(adapterProvider));
     this.authorizationEndpointsResolver = authorizationEndpointsResolver ?? throw new ArgumentNullException(nameof(authorizationEndpointsResolver));
 }