AuthenticationProviderExtensionsAddAuthenticationProvider(IServiceCollection, String, IAuthenticationProvider) Method

Adds an authentication provider as a singleton service.

Definition

Namespace: Gemstone.Security.AuthenticationProviders
Assembly: Gemstone.Security (in Gemstone.Security.dll) Version: 1.0.166 -- Release Build+3ac73912f52c3309a818fcc8cd731758651aaeae
public static IServiceCollection AddAuthenticationProvider(
	this IServiceCollection services,
	string identity,
	IAuthenticationProvider provider
)

Parameters

services  IServiceCollection
The collection of services
identity  String
The identity of the authentication provider
provider  IAuthenticationProvider
The provider instance to be added as the singleton service

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