protected ActiveLoginDecorator(IAuthenticationSchemeLoader authenticationSchemeLoader, ILoggerFactory loggerFactory) : base(loggerFactory) { this.AuthenticationSchemeLoader = authenticationSchemeLoader ?? throw new ArgumentNullException(nameof(authenticationSchemeLoader)); }
public ActiveLoginCallbackDecorator(IAuthenticationSchemeLoader authenticationSchemeLoader, ILoggerFactory loggerFactory) : base(authenticationSchemeLoader, loggerFactory) { }
public AuthenticateController(IOptions <ExtendedAuthenticationOptions> authenticationOptions, IAuthenticationSchemeLoader authenticationSchemeLoader, IDecorationLoader decorationLoader, ILoggerFactory loggerFactory) { this.AuthenticationOptions = authenticationOptions ?? throw new ArgumentNullException(nameof(authenticationOptions)); this.AuthenticationSchemeLoader = authenticationSchemeLoader ?? throw new ArgumentNullException(nameof(authenticationSchemeLoader)); this.DecorationLoader = decorationLoader ?? throw new ArgumentNullException(nameof(decorationLoader)); if (loggerFactory == null) { throw new ArgumentNullException(nameof(loggerFactory)); } this.Logger = loggerFactory.CreateLogger(this.GetType()); }
public ActiveLoginAuthenticationPropertiesDecorator(IOptions <ExtendedAuthenticationOptions> authenticationOptions, IAuthenticationSchemeLoader authenticationSchemeLoader, IOptionsMonitor <CookieAuthenticationOptions> cookieAuthenticationOptionsMonitor, ILoggerFactory loggerFactory) : base(authenticationSchemeLoader, loggerFactory) { this.AuthenticationOptions = authenticationOptions ?? throw new ArgumentNullException(nameof(authenticationOptions)); this.CookieAuthenticationOptionsMonitor = cookieAuthenticationOptionsMonitor ?? throw new ArgumentNullException(nameof(cookieAuthenticationOptionsMonitor)); }
public HomeController(IAuthenticationSchemeLoader authenticationSchemeLoader) { this.AuthenticationSchemeLoader = authenticationSchemeLoader ?? throw new ArgumentNullException(nameof(authenticationSchemeLoader)); }
public AccountController(IOptions <ExtendedAuthenticationOptions> authenticationOptions, IAuthenticationSchemeLoader authenticationSchemeLoader) { this.AuthenticationOptions = authenticationOptions ?? throw new ArgumentNullException(nameof(authenticationOptions)); this.AuthenticationSchemeLoader = authenticationSchemeLoader ?? throw new ArgumentNullException(nameof(authenticationSchemeLoader)); }
public static async Task <IDictionary <IAuthenticationScheme, AuthenticationSchemeOptions> > GetDiagnosticsAsync(this IAuthenticationSchemeLoader authenticationSchemeLoader, IServiceProvider serviceProvider) { if (authenticationSchemeLoader == null) { throw new ArgumentNullException(nameof(authenticationSchemeLoader)); } if (serviceProvider == null) { throw new ArgumentNullException(nameof(serviceProvider)); } var diagnostics = new Dictionary <IAuthenticationScheme, AuthenticationSchemeOptions>(); var schemes = await authenticationSchemeLoader.ListAsync().ConfigureAwait(false); foreach (var scheme in schemes) { var options = await scheme.GetOptionsDiagnosticsAsync(serviceProvider).ConfigureAwait(false); diagnostics.Add(scheme, options); } return(diagnostics); }
public AuthenticationSchemeRetriever(IOptionsMonitor <ExtendedAuthenticationOptions> authenticationOptionsMonitor, IAuthenticationSchemeLoader authenticationSchemeLoader, IIdentityProviderStore identityProviderStore, IOptionsMonitor <IdentityServerOptions> identityServerOptionsMonitor, ILoggerFactory loggerFactory) { this.AuthenticationOptionsMonitor = authenticationOptionsMonitor ?? throw new ArgumentNullException(nameof(authenticationOptionsMonitor)); this.AuthenticationSchemeLoader = authenticationSchemeLoader ?? throw new ArgumentNullException(nameof(authenticationSchemeLoader)); this.IdentityProviderStore = identityProviderStore ?? throw new ArgumentNullException(nameof(identityProviderStore)); this.IdentityServerOptionsMonitor = identityServerOptionsMonitor ?? throw new ArgumentNullException(nameof(identityServerOptionsMonitor)); this.Logger = (loggerFactory ?? throw new ArgumentNullException(nameof(loggerFactory))).CreateLogger(this.GetType()); }