public AuthenticationSchemeConfigurator( AuthenticationSchemeType authenticationSchemeType, IAuthenticationSchemeStore authenticationSchemeStore, IEnumerable <IPostConfigureOptions <TOptions> > postConfigurations, Func <AuthenticationSchemeData, TOptions> factory) { this.authenticationSchemeType = authenticationSchemeType; this.authenticationSchemeStore = authenticationSchemeStore; this.postConfigurations = postConfigurations; this.factory = factory; }
public SquidexAuthenticationSchemeProvider(IAuthenticationSchemeStore store, IEnumerable <IAuthenticationSchemeConfigurator> configurators, IOptions <AuthenticationOptions> options) : base(options) { foreach (var builder in options.Value.Schemes) { var scheme = builder.Build(); if (!configurators.Any(x => x.HandlerType == scheme.HandlerType)) { defaultSchemes.Add(scheme); } } this.store = store; }