AuthenticationRegistry class
Registry of authentication options keyed by (schema, type). Stores as base AuthenticationSchemeOptions, with typed helpers.
public sealed class AuthenticationRegistry
Public Members
| name | description |
|---|---|
| AuthenticationRegistry(…) | Initializes a new instance of the AuthenticationRegistry class. |
| Clear() | Clears all registered authentication schemes. |
| Exists(…) | Checks if an authentication scheme exists for the specified schema and type. |
| Get(…) | Gets the authentication options for the specified schema and type. |
| Get<TOptions>(…) | Gets the authentication options of the specified type for the given schema and type. |
| GetClaimPolicyConfigs() | Returns a dictionary mapping authentication schema names to the array of claim policy names defined for that schema. It inspects registered option objects for a property named ClaimPolicyConfig or ClaimPolicy of type ClaimPolicyConfig. Only schemas with at least one defined policy are returned. Supports OidcOptions, OAuth2Options, and other options types. |
| GetOidcOptions() | Returns a dictionary of all registered OpenID Connect (OIDC) authentication options keyed by their schema. Only entries whose AuthenticationType is Oidc and whose stored options are of type OidcOptions are included. |
| GetSchemesByPolicy(…) | Returns a list of authentication schema names that define the specified policy name. This method searches through all registered authentication options and returns the schemas that have a ClaimPolicyConfig containing a policy with the given name. |
| Items() | Enumerates all registered authentication schemes. |
| Register(…) | Registers an authentication scheme with the specified options. |
| Register<TOptions>(…) | Registers an authentication scheme with the specified options and configuration. |
| Remove(…) | Removes the authentication scheme for the specified schema and type. |
| ResolveAuthenticationSchemeName(…) | Gets the authentication scheme name for the specified schema and type. |
| TryGet(…) | Tries to get the authentication options for the specified schema and type. |
| TryGet<TOptions>(…) | Tries to get the authentication options of the specified type for the given schema and type. |
| Upsert(…) | Upserts (adds or replaces) an entry. |
| Upsert<TOptions>(…) | Upserts (adds or replaces) an entry. |