AuthOptionsHelper.GetAuthOptions<TOptions> method

Retrieve authentication options from the DI container.

public static TOptions GetAuthOptions<TOptions>(HttpContext ctx, string scheme)
    where TOptions : AuthenticationSchemeOptions
parameter description
TOptions The type of authentication options.
ctx The HTTP context.
scheme The authentication scheme.

Return Value

The authentication options for the specified scheme.

See Also