AuthenticationProviderExtensionsAddAuthenticationProvider(IServiceCollection, String, FuncIServiceProvider, IAuthenticationProvider) Method

Adds the authentication provider as a singleton service.

Definition

Namespace: Gemstone.Security.AuthenticationProviders
Assembly: Gemstone.Security (in Gemstone.Security.dll) Version: 1.0.171 -- Release Build+9bbaecd83e44e0973a7b18ef958272cfb4d67729
public static IServiceCollection AddAuthenticationProvider(
	this IServiceCollection services,
	string identity,
	Func<IServiceProvider, IAuthenticationProvider> providerFactory
)

Parameters

services  IServiceCollection
The collection of services
identity  String
The identity of the authentication provider
providerFactory  FuncIServiceProvider, IAuthenticationProvider
Factory function used to instantiating the singleton instance

Return Value

IServiceCollection
The collection of services.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IServiceCollection. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

See Also