OAuthAuthenticationProviderExtensionsAddOAuthAuthenticationProvider(IServiceCollection, String, ActionOAuthAuthenticationProviderOptions) Method

Adds the OAuth authentication provider as a transient service using the given identity and configured options.

Definition

Namespace: Gemstone.Security.AuthenticationProviders
Assembly: Gemstone.Security (in Gemstone.Security.dll) Version: 1.0.188 -- Release Build+7e33006aa725ddd25cd2ecda3cef9fd5aea3821b
public static IServiceCollection AddOAuthAuthenticationProvider(
	this IServiceCollection services,
	string identity,
	Action<OAuthAuthenticationProviderOptions> configure
)

Parameters

services  IServiceCollection
The collection of services
identity  String
The identity of the authentication provider
configure  ActionOAuthAuthenticationProviderOptions
Method invoked to configure the authentication provider

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