APIAuthenticationHandlerExtensionsAddAPIAuthentication(AuthenticationBuilder, String, ActionAPIAuthenticationOptions) Method

Adds the API authentication handler to the application.

Definition

Namespace: Gemstone.Security.AuthenticationProviders
Assembly: Gemstone.Security (in Gemstone.Security.dll) Version: 1.0.181 -- Release Build+ddfc5abcc226f4dec0986b2a0da5f8a889a81a36
public static AuthenticationBuilder AddAPIAuthentication(
	this AuthenticationBuilder builder,
	string authenticationScheme,
	Action<APIAuthenticationOptions> configureOptions
)

Parameters

builder  AuthenticationBuilder
The builder used to configure authentication
authenticationScheme  String
The name of the scheme
configureOptions  ActionAPIAuthenticationOptions
Action to configure the APIAuthenticationOptions

Return Value

AuthenticationBuilder
The builder used to configure authentication.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type AuthenticationBuilder. 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