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.183 -- Release Build+e8d70f88ffe1c3ecb20f972441dde3ce66234369
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