AuthenticationRegistry.Get method (1 of 2)

Gets the authentication options for the specified schema and type.

public AuthenticationSchemeOptions Get(string schema, string type)
parameter description
schema The schema to match for the authentication scheme.
type The HTTP type to match for the authentication scheme.

Return Value

The authentication options for the specified schema and type.

Exceptions

exception condition
KeyNotFoundException Thrown when no authentication options are registered for the specified schema and type.

See Also


AuthenticationRegistry.Get<TOptions> method (2 of 2)

Gets the authentication options of the specified type for the given schema and type.

public TOptions Get<TOptions>(string schema, string type)
    where TOptions : AuthenticationSchemeOptions
parameter description
TOptions The type of the authentication options.
schema The schema to match for the authentication scheme.
type The HTTP type to match for the authentication scheme.

Return Value

The authentication options of the specified type for the given schema and type.

Exceptions

exception condition
KeyNotFoundException Thrown when no authentication options of the specified type are registered for the given schema and type.

See Also