AuthenticationRegistry.Register method (1 of 2)

Registers an authentication scheme with the specified options.

public bool Register(string schema, AuthenticationType type, 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 to configure the authentication scheme.

Return Value

True if the registration was successful; otherwise, false.

See Also


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

Registers an authentication scheme with the specified options and configuration.

public bool Register<TOptions>(string schema, AuthenticationType type, 
    Action<TOptions>? configure = null)
    where TOptions : AuthenticationSchemeOptions, new()
parameter description
TOptions The type of the options for the authentication scheme.
schema The schema to match for the authentication scheme.
type The HTTP type to match for the authentication scheme.
configure An optional action to configure the authentication options.

Return Value

True if the registration was successful; otherwise, false.

See Also