public WindowsAuthenticationUserFactory(string providerId, ClaimsPrincipal claimsPrincipal, LdapTools.Ldap ldap, ProviderCache providerCache) { _providerId = providerId; _claimsPrincipal = claimsPrincipal; _ldap = ldap; _providerCache = providerCache; }
public void Register(AuthenticationProvider provider) { _providerId = provider.Id.ToString(); _providerCache = new ProviderCache(); SchemeName = provider.Name; var scheme = new AuthenticationScheme(SchemeName, provider.DisplayName, typeof(NegotiateHandler)); _schemeProvider.AddScheme(scheme); var options = new NegotiateOptions(); _optionsCache.TryAdd(SchemeName, options); }