AuthenticationProviderExtensionsAddAuthenticationProviderT(IServiceCollection, String) Method

Adds an authentication provider as a singleton service.

Definition

Namespace: Gemstone.Security.AuthenticationProviders
Assembly: Gemstone.Security (in Gemstone.Security.dll) Version: 1.0.170 -- Release Build+ca3065dc8f8b84c59ee38bd3367c3e71f3818071
public static IServiceCollection AddAuthenticationProvider<T>(
	this IServiceCollection services,
	string identity
)
where T : class, IAuthenticationProvider

Parameters

services  IServiceCollection
The collection of services
identity  String
The identity of the authentication provider

Type Parameters

T
The type of authentication provider to be instantiated as 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