AuthenticationRegistry.ResolveAuthenticationSchemeName method
Gets the authentication scheme name for the specified schema and type.
public string ResolveAuthenticationSchemeName(string schema, AuthenticationType type,
bool cookiesSchemeName)
| parameter | description |
|---|---|
| schema | The schema to match for the authentication scheme. |
| type | The HTTP type to match for the authentication scheme. |
| cookiesSchemeName | If true, returns the cookie scheme name for cookie-based options. |
Return Value
The authentication scheme name.
Exceptions
| exception | condition |
|---|---|
| KeyNotFoundException | Thrown when no authentication options are registered for the specified schema and type. |
See Also
- enum AuthenticationType
- class AuthenticationRegistry
- namespace Kestrun.Authentication