AuthenticationRegistry.TryGet method (1 of 2)

Tries to get the authentication options for the specified schema and type.

public bool TryGet(string schema, string type, out AuthenticationSchemeOptions? options)
parameter description
schema The schema to match for the authentication scheme.
type The HTTP type to match for the authentication scheme.
options The options for the authentication scheme.

Return Value

True if the authentication options were found; otherwise, false.

See Also


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

Tries to get the authentication options of the specified type for the given schema and type.

public bool TryGet<TOptions>(string schema, string type, out TOptions? options)
    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.
options The options for the authentication scheme.

Return Value

True if the authentication options were found; otherwise, false.

See Also