Added in Unreleased.
AuthorizationServerOptions is the central configuration type for ZeeKayDa.Auth. It controls the issuer identity, published endpoint URLs, and the capability sets advertised in the OpenID Connect discovery document.
Pass an Action<AuthorizationServerOptions> delegate to AddZeeKayDaAuth(...) at service registration time. For step-by-step setup instructions, see Configure ZeeKayDa.Auth. For the discovery document that these options feed, see Discovery endpoint.
Registration
using ZeeKayDa.Auth;
using ZeeKayDa.Auth.AspNetCore.Extensions;
var builder = WebApplication.CreateBuilder(args);
builder.Services.AddZeeKayDaAuth(options =>
{
options.Issuer = "https://id.example.com";
});
AddZeeKayDaAuth registers all ZeeKayDa.Auth services and validates the options when MapZeeKayDaAuth() runs and again at startup, so that misconfigured options cause the host to fail fast rather than at request time. It returns a ZeeKayDaAuthBuilder for registering optional features.
Collections are filled or assigned while the options are configured. Once configuration completes, before validation runs, each collection is replaced by a read-only copy of the configured values in the configured order, so nothing can change them after validation has approved them. Assigning a collection, or any other value on the options or their groups, after that point throws ZeeKayDaConfigurationException with the code configuration.options_frozen, so a PostConfigure<AuthorizationServerOptions> registered after AddZeeKayDaAuth fails startup rather than replacing a validated value.
Properties
Issuer
| Attribute | Value |
|---|---|
| Type | string? |
| Default | null |
| Required | Yes |
The issuer identifier for this authorization server. Published verbatim as the issuer field in the OpenID Connect discovery document.
The value must be an absolute HTTPS URI with no query string, fragment, or user information. The /.well-known/openid-configuration discovery endpoint is derived from this value.
options.Issuer = "https://id.example.com";
// or, for a path-bearing issuer:
options.Issuer = "https://id.example.com/tenant-a";
Issuer syntax requirements are defined by RFC 8414 §2 and OpenID Connect Discovery 1.0 §1.2.
AllowInsecureIssuer
| Attribute | Value |
|---|---|
| Type | bool |
| Default | false |
| Required | No |
When true, relaxes the HTTPS requirement on Issuer to allow HTTP loopback issuers only. Intended for local development and automated testing only.
Warning: Never set
AllowInsecureIssuer = truein production. An HTTP issuer allows token responses to be intercepted and identity documents to be forged. When this flag is enabled, theInsecureIssuerstartup verifier emits a warning at every startup.Request-time enforcement also applies: ZeeKayDa.Auth protocol endpoints reject non-HTTPS non-loopback requests with
421 Misdirected Request. Loopback is determined from the TCP-levelHttpContext.Connection.RemoteIpAddress, not from theHostheader.Behind a TLS-terminating reverse proxy, the request reaches the application over HTTP and is rejected with
421untilUseForwardedHeaders(), withForwardedHeaders.XForwardedProtoenabled, restores the original scheme fromX-Forwarded-Proto. That is the fix, notDevelopment.AllowHttpLoopbackIssuer; scope it as the caution below describes.Reverse-proxy caution: If the application runs behind a reverse proxy with
UseForwardedHeaders()configured to trust an unbounded set of proxies,RemoteIpAddresscan be overwritten from a client-controlledX-Forwarded-Forvalue. An attacker could then forgeX-Forwarded-For: 127.0.0.1to appear loopback. Always scopeKnownProxiesorKnownIPNetworksto the actual proxy addresses and ensureUseForwardedHeaders()runs beforeapp.UseEndpoints(); never combineAllowInsecureIssuer = truewith a wildcard trusted-proxy configuration.
// Local development only
options.Issuer = "http://localhost:5000";
options.AllowInsecureIssuer = true;
AuthorizationEndpoint
| Attribute | Value |
|---|---|
| Type | AuthorizationEndpointOptions |
| Default | new AuthorizationEndpointOptions() |
| Required | No |
Group for authorization endpoint settings.
AuthorizationEndpoint.Uri overrides the authorization_endpoint value published in the discovery document. When null, ZeeKayDa.Auth derives the URL from Issuer as {issuer}/connect/authorize.
Set this when the URL your clients should use differs from the issuer-derived default — for example, when a reverse proxy rewrites paths under the same authority. The value must be an absolute HTTPS URI without user information or fragment. Query strings are permitted by RFC 6749 Section 3.1. The override must use the same authority as Issuer.
options.AuthorizationEndpoint.Uri = "https://id.example.com/tenant-a/custom/authorize";
AuthorizationEndpoint.MaxRequestContextBytes
| Attribute | Value |
|---|---|
| Type | int |
| Default | 16384 (16 KB) |
| Required | No |
The most an authorization request may occupy in the interaction store, in bytes of encoded request context, before it is refused. An authorization request needs no authentication, and every valid one is stored for the interaction’s lifetime, so this bounds what one request can make the store hold. A typical request encodes to a few hundred bytes; state and nonce are the only unbounded fields, so the default is far above what any real client sends. A request over the cap is answered locally with invalid_request — never redirected, since echoing an oversized state builds a Location the client’s server may not accept.
Raise it only for clients that legitimately send larger state values:
options.AuthorizationEndpoint.MaxRequestContextBytes = 64 * 1024;
Must be greater than zero; rejected at startup otherwise.
AuthorizationEndpoint.CodeChallengeMethodsSupported
| Attribute | Value |
|---|---|
| Type | ICollection<CodeChallengeMethod>? |
| Default | [CodeChallengeMethod.S256] |
| Required | When GrantTypesSupported contains AuthorizationCode |
The PKCE code challenge methods advertised in the discovery document, and the one method the token endpoint verifies every code_verifier with. PKCE is enforced for the authorization code grant (OAuth 2.1 §4.1.1, RFC 9700 §2.1.1) for every client except a confidential one whose registration sets RequirePkce to false, so a host that serves the grant must keep S256 in this collection: startup fails otherwise. When null, the code_challenge_methods_supported field is omitted from the discovery document, which is only valid on a host whose GrantTypesSupported does not contain the code grant.
| Enum value | JSON serialization |
|---|---|
CodeChallengeMethod.S256 | "S256" |
The plain challenge method is intentionally absent from CodeChallengeMethod. RFC 9700 §2.1.1 explicitly prohibits its use: advertising plain would negate PKCE’s security benefit because the challenge is identical to the verifier and provides no protection against interception.
Startup validation rejects a non-null empty collection (e.g. = []), which would publish "code_challenge_methods_supported": [] — advertising PKCE support with no usable method — and rejects null or a collection without S256 on a host that serves the authorization code grant.
Maps to code_challenge_methods_supported as defined in RFC 7636 §4.3 and RFC 8414 §2.
TokenEndpoint
| Attribute | Value |
|---|---|
| Type | TokenEndpointOptions |
| Default | new TokenEndpointOptions() |
| Required | No |
Group for token endpoint settings.
TokenEndpoint.Uri overrides the token_endpoint value published in the discovery document. When null, ZeeKayDa.Auth derives the URL from Issuer as {issuer}/connect/token.
The value must be an absolute HTTPS URI without user information or fragment. The override must use the same authority as Issuer.
options.TokenEndpoint.Uri = "https://id.example.com/tenant-a/custom/token";
TokenEndpoint.AccessTokenLifetime (default ten minutes) and TokenEndpoint.IdTokenLifetime (default five minutes) are the server-wide lifetimes of the tokens the endpoint issues. Both must be greater than zero; there is no upper bound, but a value longer than TokenEndpoint.AbsoluteFamilyLifetime logs a startup warning. A client registration may override either through its own AccessTokenLifetime and IdTokenLifetime, where null (the default) means the server value.
options.TokenEndpoint.AccessTokenLifetime = TimeSpan.FromMinutes(30);
options.TokenEndpoint.IdTokenLifetime = TimeSpan.FromMinutes(2);
The access-token default is short because the token is a self-contained JWT: nothing checks it against a store, so a resource server keeps accepting it until it expires however the grant behind it ended — revoked, signed out, or deleted. AccessTokenLifetime is that window, and every minute added to it is a minute added to the window. Budget for a little more than the value you set: a resource server applies its own clock-skew tolerance to exp, five minutes being a common default, and that tolerance is added to this lifetime. RFC 7009 §3 sanctions that trade for self-contained tokens: keep them short and renew them.
Renewal today is a fresh authorization request the client starts itself, by redirecting through the authorization endpoint roughly every ten minutes instead of every hour. That is the path RFC 9700 §4.14.2 describes for a server that issues no refresh token: the client obtains a new access token through another grant, and the server uses the sign-in session to keep that cheap. A browser that still holds its sign-in session is not asked to sign in again, but it is asked for consent again: consent is not remembered between requests, so a client left at the default RequireConsent = true prompts the user on every renewal, and a renewal sent with prompt=none is answered consent_required. Only a client registered with RequireConsent = false renews without the user seeing anything. Turn consent off for that reason alone only for your own first-party applications — it is the control that lets a user notice an authorization request they never started. The refresh-token grant is not served yet, so putting GrantType.RefreshToken in GrantTypesSupported fails startup.
JwksEndpoint
| Attribute | Value |
|---|---|
| Type | JwksEndpointOptions |
| Default | new JwksEndpointOptions() |
| Required | No |
Group for JSON Web Key Set endpoint settings.
JwksEndpoint.Uri overrides the jwks_uri value published in the discovery document. When null, ZeeKayDa.Auth derives the URL from Issuer as {issuer}/connect/jwks.
The value must be an absolute HTTPS URI without user information, query, or fragment. The override must use the same authority as Issuer.
options.JwksEndpoint.Uri = "https://id.example.com/tenant-a/custom/jwks";
JwksEndpoint.CacheMaxAge (TimeSpan, default one hour) sets the max-age duration for the JWKS response’s Cache-Control header, emitted in whole seconds exactly like DiscoveryDocument.CacheMaxAge: public, max-age=3600, must-revalidate by default, no-store below one second, and negative values fail startup validation. This value governs how long a relying party may keep trusting a cached key set — including a key that has since been removed from configuration — so a shorter TTL shortens that revocation window at the cost of more JWKS traffic.
See the JWKS endpoint reference for the response format.
UserInfoEndpoint
| Attribute | Value |
|---|---|
| Type | UserInfoEndpointOptions |
| Default | new UserInfoEndpointOptions() |
| Required | No |
Group for UserInfo endpoint settings.
UserInfoEndpoint.Uri overrides the userinfo_endpoint value published in the discovery document. When null, ZeeKayDa.Auth derives the URL from Issuer as {issuer}/connect/userinfo.
The value must be an absolute HTTPS URI without user information, query, or fragment, and must use the same authority as Issuer.
options.UserInfoEndpoint.Uri = "https://id.example.com/tenant-a/custom/userinfo";
The endpoint is served, and its URL published, only when GrantTypesSupported includes AuthorizationCode. The browser origins allowed to read its responses are CorsOrigins.
See the UserInfo endpoint reference for the token, response and error contract.
Response.TypesSupported
| Attribute | Value |
|---|---|
| Type | ICollection<ResponseType> |
| Default | [ResponseType.Code] |
| Required | Yes (must not be null or empty) |
The response types this server supports. Published as response_types_supported in the discovery document. This value lives in the Response options group.
| Enum value | JSON serialization |
|---|---|
ResponseType.Code | "code" |
Hybrid and implicit response types are not supported by ZeeKayDa.Auth. The library intentionally publishes code flow only, aligned with OAuth 2.1 §3.3 and RFC 9700 §2.1.2.
response_types_supported is a required field in the discovery document per OpenID Connect Discovery 1.0 §3.
Response.ModesSupported
| Attribute | Value |
|---|---|
| Type | ICollection<ResponseMode> |
| Default | [ResponseMode.Query] |
| Required | Yes (must not be null) |
The response modes this server supports. Published as response_modes_supported in the discovery document. This value lives in the Response options group.
| Enum value | JSON serialization |
|---|---|
ResponseMode.Query | "query" |
GrantTypesSupported
| Attribute | Value |
|---|---|
| Type | ICollection<GrantType> |
| Default | [GrantType.AuthorizationCode] |
| Required | Yes (must not be null) |
The grant types this server supports. Published as grant_types_supported in the discovery document. Only the authorization code grant is served: any other GrantType fails startup with configuration.grant_types_supported.not_served, since the document may name only grants the server supports. An empty collection declares a host with no interactive flow.
| Enum value | JSON serialization |
|---|---|
GrantType.AuthorizationCode | "authorization_code" |
grant_types_supported is an authorization server metadata field defined by RFC 8414 §2.
TokenEndpoint.AdvertisedAuthMethods
| Attribute | Value |
|---|---|
| Type | ICollection<string>? |
| Default | null |
| Required | No |
An optional filter on the client authentication methods the token endpoint advertises and accepts. Published, after filtering, as token_endpoint_auth_methods_supported in the discovery document.
The advertised set is derived, not configured: every method a registered IClientAuthenticator declares in its AuthenticationMethods, plus "none", which the framework handles itself. With the built-in authenticator that is client_secret_basic, client_secret_post and none. A host with a public client therefore needs no server-wide setting.
The filter can only withhold a method, never add one:
- An entry no authenticator performs (e.g.
"private_key_jwt"with no authenticator for it) has no effect and logs a startup warning (token_endpoint.advertised_auth_methods.unperformable). - A filter that leaves nothing the server performs fails startup (
token_endpoint.advertised_auth_methods.none_performable). - An entry that differs from a performed method only in casing (
Client_Secret_Basic) fails startup (token_endpoint.advertised_auth_methods.casing). - An empty filter fails startup;
nulladvertises everything. - Each entry must be a non-empty string with no surrounding whitespace and no control characters.
TokenEndpointAuthMethods constant | String value |
|---|---|
ClientSecretBasic | "client_secret_basic" |
ClientSecretPost | "client_secret_post" |
None | "none" |
Custom methods (e.g. "tls_client_auth") are plain strings, declared by the authenticator that performs them.
// Refuse public clients: a public client registration then fails startup.
options.TokenEndpoint.AdvertisedAuthMethods = [TokenEndpointAuthMethods.ClientSecretBasic];
token_endpoint_auth_methods_supported is defined by RFC 8414 §2.
"none" and PKCE
TokenEndpointAuthMethods.None ("none") represents public clients — clients with no client secret. Public clients cannot securely transmit credentials at the token endpoint, so they MUST use PKCE (RFC 9700 §2.1.1). The framework requires S256 for every authorization code exchange, and a public client can use no grant that needs a credential.
ID token signing algorithm
There is no option for it. id_token_signing_alg_values_supported publishes the one algorithm the signing source was registered for — AddPemFileSigning(path, SigningAlgorithm.RS256) and its siblings take it — and every key that source lists signs under it, so the advertised value never changes during a key rotation. Changing algorithm means registering a source for the new one and restarting.
| Code | Meaning |
|---|---|
signing.advertised_algorithms.rs256_absent | The source signs with something other than RS256, which OpenID Connect Discovery 1.0 §3 requires in the list. A startup warning: the framework does not advertise an algorithm it never signs with. |
| Enum value | JSON serialization |
|---|---|
SigningAlgorithm.RS256 | "RS256" |
SigningAlgorithm.RS384 | "RS384" |
SigningAlgorithm.RS512 | "RS512" |
SigningAlgorithm.ES256 | "ES256" |
SigningAlgorithm.ES384 | "ES384" |
SigningAlgorithm.ES512 | "ES512" |
SigningAlgorithm.PS256 | "PS256" |
SigningAlgorithm.PS384 | "PS384" |
SigningAlgorithm.PS512 | "PS512" |
id_token_signing_alg_values_supported is a required field in the discovery document per OpenID Connect Discovery 1.0 §3.
DiscoveryDocument.CacheMaxAge
| Attribute | Value |
|---|---|
| Type | TimeSpan |
| Default | TimeSpan.FromHours(1) |
| Required | No |
The max-age duration for the discovery endpoint’s Cache-Control header, emitted in whole seconds. The default response is:
Cache-Control: public, max-age=3600, must-revalidate
Any value below one second — TimeSpan.Zero being the idiomatic choice — disables public caching:
Cache-Control: no-store
Negative values fail startup validation.
The JWKS endpoint has its own, independently configured equivalent: JwksEndpoint.CacheMaxAge.
CorsOrigins
| Attribute | Value |
|---|---|
| Type | ICollection<string> |
| Default | [] (empty) |
| Required | No |
The list of browser origins permitted to read the responses of the endpoints a script may call: the discovery document, the JWKS and userinfo. When empty (the default), each returns Access-Control-Allow-Origin: *. When non-empty, only requests whose Origin header matches an allowlist entry receive an Access-Control-Allow-Origin response header.
One list covers every one of those endpoints. None of them authenticates with a cookie, so the allowlist decides which origins may read a public document or a response the caller already holds the access token for, and that answer does not vary by endpoint.
Each entry must be an absolute origin in the form scheme://host[:port] with no path, query, fragment, user information, wildcards, or the literal string null. The option is frozen as configured; the endpoints match against a canonical (lowercased, de-duplicated) form derived from it. Invalid entries cause the host to fail fast.
https:// origins are always accepted. http:// origins are rejected unless AllowInsecureIssuer = true; when enabled, HTTP origins must still target loopback hosts only.
options.CorsOrigins.Add("https://app.example.com");
options.CorsOrigins.Add("https://admin.example.com");
See Discovery endpoint — CORS configuration for the full CORS behaviour and an OPTIONS preflight note.
SecurityHeaders.ContentTypeOptionsNoSniff
| Attribute | Value |
|---|---|
| Type | bool |
| Default | true |
| Required | No |
When true (the default), every ZeeKayDa.Auth protocol endpoint response includes X-Content-Type-Options: nosniff. Set to false to suppress this header if your application already sets it globally via a security-headers middleware.
SecurityHeaders.ReferrerPolicy
| Attribute | Value |
|---|---|
| Type | ReferrerPolicy |
| Default | ReferrerPolicy.NoReferrer |
| Required | No |
Controls the Referrer-Policy response header emitted by all ZeeKayDa.Auth protocol endpoints. The default no-referrer suppresses the Referer request header entirely, which is appropriate for OAuth/OIDC endpoints that should not leak token URLs to third-party origins.
| Enum value | Header value |
|---|---|
ReferrerPolicy.NoReferrer | no-referrer |
ReferrerPolicy.NoReferrerWhenDowngrade | no-referrer-when-downgrade |
ReferrerPolicy.Origin | origin |
ReferrerPolicy.OriginWhenCrossOrigin | origin-when-cross-origin |
ReferrerPolicy.SameOrigin | same-origin |
ReferrerPolicy.StrictOrigin | strict-origin |
ReferrerPolicy.StrictOriginWhenCrossOrigin | strict-origin-when-cross-origin |
ReferrerPolicy.UnsafeUrl | unsafe-url |
SecurityHeaders.CrossOriginResourcePolicy
| Attribute | Value |
|---|---|
| Type | CrossOriginResourcePolicy |
| Default | CrossOriginResourcePolicy.CrossOrigin |
| Required | No |
Controls the Cross-Origin-Resource-Policy response header emitted by all ZeeKayDa.Auth protocol endpoints. The default cross-origin permits cross-origin subresource fetches (required for browser-based relying parties reading the discovery document). Set to same-origin or same-site only when all relying parties are co-hosted on the same origin or site as the authorization server.
Note: If your application already applies a security-headers middleware that sets
Cross-Origin-Resource-Policy, the header will be duplicated in ZeeKayDa.Auth responses. SinceCrossOriginResourcePolicyis an enum (not a boolean), there is no way to suppress the header entirely. To avoid duplication, configure only one side: either exclude ZeeKayDa.Auth routes from your middleware’s header policy, or rely solely on ZeeKayDa.Auth’s built-in header. For example, with ASP.NET Core’sUseSecurityHeaders()(NWebSec or similar), scope the middleware to non-ZeeKayDa routes only.
| Enum value | Header value |
|---|---|
CrossOriginResourcePolicy.SameSite | same-site |
CrossOriginResourcePolicy.SameOrigin | same-origin |
CrossOriginResourcePolicy.CrossOrigin | cross-origin |
Startup validation
AuthorizationServerOptionsValidator validates AuthorizationServerOptions when MapZeeKayDaAuth() runs and again at host startup, for a host that never maps the endpoints. The host will not start if any rule below is violated.
A violation throws ZeeKayDaConfigurationException, the same exception every other startup check throws. Its AggregatedFailures holds one ZeeKayDaConfigurationFailure per violated rule, and each failure’s Code is stable public contract, so operator alerting can key on it. The same exception also carries the failures of every other options type registered through ZeeKayDa.Auth (signing sources, client secret hashers and so on), so one start reports them all. It is visible in the startup output and host logs.
| Code | Condition that causes failure |
|---|---|
configuration.issuer.missing | Issuer is null, empty, or whitespace |
configuration.issuer.invalid | Issuer is not an absolute URI |
configuration.issuer.query | Issuer contains a ? component |
configuration.issuer.fragment | Issuer contains a # component |
configuration.issuer.userinfo | Issuer contains user:password@host userinfo |
configuration.issuer.trailing_slash | Issuer ends with / |
configuration.issuer.not_https | Issuer uses a scheme other than HTTPS, and is not HTTP with AllowInsecureIssuer set |
configuration.issuer.http_non_loopback | Issuer uses HTTP with a non-loopback host |
configuration.development.allow_http_loopback_issuer.https_issuer | Development.AllowHttpLoopbackIssuer is true while Issuer uses HTTPS; the flag would still exempt every loopback request from the HTTPS requirement |
configuration.issuer.not_canonical | Issuer uses uppercase scheme or host, or explicitly specifies a default port (:443 for HTTPS, :80 for HTTP loopback) |
configuration.<endpoint>.uri.invalid | an endpoint override is not an absolute URI |
configuration.<endpoint>.uri.userinfo | an endpoint override contains user:password@host userinfo |
configuration.<endpoint>.uri.not_https | an endpoint override uses a scheme other than HTTPS, and is not HTTP with AllowInsecureIssuer set |
configuration.<endpoint>.uri.http_non_loopback | an endpoint override uses HTTP with a non-loopback host |
configuration.<endpoint>.uri.authority_mismatch | an endpoint override’s host or port differs from Issuer |
configuration.<endpoint>.uri.query | JwksEndpoint.Uri, EndSessionEndpoint.Uri, or UserInfoEndpoint.Uri contains ? |
configuration.<endpoint>.uri.fragment | an endpoint override contains # |
configuration.response.types_supported.null | Response.TypesSupported is null |
configuration.response.types_supported.empty | Response.TypesSupported is empty |
configuration.response.modes_supported.null | Response.ModesSupported is null |
configuration.grant_types_supported.null | GrantTypesSupported is null |
configuration.grant_types_supported.undefined_value | GrantTypesSupported contains an out-of-range GrantType cast |
configuration.grant_types_supported.not_served | GrantTypesSupported contains a grant other than AuthorizationCode, which the token endpoint does not serve |
configuration.token_endpoint.advertised_auth_methods.empty | TokenEndpoint.AdvertisedAuthMethods is empty |
configuration.token_endpoint.advertised_auth_methods.invalid_entry | a TokenEndpoint.AdvertisedAuthMethods entry is blank, has surrounding whitespace, or contains a control character |
configuration.token_endpoint.access_token_lifetime.not_positive | TokenEndpoint.AccessTokenLifetime is zero or negative |
configuration.token_endpoint.id_token_lifetime.not_positive | TokenEndpoint.IdTokenLifetime is zero or negative |
configuration.token_endpoint.refresh_token_lifetime.not_positive | TokenEndpoint.RefreshTokenLifetime is zero or negative |
configuration.token_endpoint.absolute_family_lifetime.not_positive | TokenEndpoint.AbsoluteFamilyLifetime is zero or negative |
configuration.discovery_document.cache_max_age.negative | DiscoveryDocument.CacheMaxAge is negative |
configuration.jwks_endpoint.cache_max_age.negative | JwksEndpoint.CacheMaxAge is negative |
configuration.cors_origins.null | CorsOrigins is null |
configuration.options_frozen | a collection was replaced, or any other value set, after configuration finished, e.g. by a PostConfigure<AuthorizationServerOptions> registered after AddZeeKayDaAuth |
configuration.cors_origins.invalid | a CorsOrigins entry is not a bare scheme://host[:port] origin, uses HTTP while AllowInsecureIssuer is false, or uses HTTP with a non-loopback host |
configuration.security_headers.referrer_policy.undefined_value | SecurityHeaders.ReferrerPolicy is set via an out-of-range cast |
configuration.security_headers.cross_origin_resource_policy.undefined_value | SecurityHeaders.CrossOriginResourcePolicy is set via an out-of-range cast |
configuration.authorization_endpoint.code_challenge_methods_supported.empty | AuthorizationEndpoint.CodeChallengeMethodsSupported is a non-null empty collection |
configuration.authorization_endpoint.code_challenge_methods_supported.s256_missing | GrantTypesSupported contains AuthorizationCode and AuthorizationEndpoint.CodeChallengeMethodsSupported is null or lacks CodeChallengeMethod.S256 |
configuration.authorization_endpoint.authorization_code_lifetime.not_positive | AuthorizationEndpoint.AuthorizationCodeLifetime is zero or negative |
configuration.authorization_endpoint.authorization_code_lifetime.too_long | AuthorizationEndpoint.AuthorizationCodeLifetime exceeds 600 seconds |
configuration.authorization_endpoint.max_request_context_bytes.not_positive | AuthorizationEndpoint.MaxRequestContextBytes is zero or negative |
configuration.authorization_endpoint.interaction.<error_path\|login_path\|consent_path>.unsafe | the interaction path is not a same-origin absolute path |
configuration.end_session_endpoint.<logout_path\|signed_out_path>.unsafe | the end-session path is not a same-origin absolute path |
configuration.clock_skew_tolerance.negative | ClockSkewTolerance is negative |
configuration.clock_skew_tolerance.too_large | ClockSkewTolerance is at least half of AuthorizationEndpoint.AuthorizationCodeLifetime |
scopes.openid_missing | the configured scope repository does not include a scope named openid (checked by a startup verifier, not the options validator) |
scopes.openid_hidden | the configured scope repository’s openid scope has IsDiscoverable set to false, which would omit it from scopes_supported (checked by a startup verifier, not the options validator) |
<endpoint> is authorization_endpoint, token_endpoint, jwks_endpoint, end_session_endpoint, or user_info_endpoint.
Note: Startup validation checks
AuthorizationServerOptionsand verifies thatIScopeRepositoryincludesopenid. Scope repositories still enforce their own validation rules (for example, blank or duplicate scope names).
Related pages
- Configure ZeeKayDa.Auth — step-by-step setup guide
- Configure discovery — how to tune the discovery document
- Configure token stores — step-by-step token store setup
- Token stores — reference for the authorization-code and refresh-token stores, their backing-store extension points, lifetime options, and
ZeeKayDaStoreException - Discovery endpoint — full contract for the discovery endpoint
- UserInfo endpoint — full contract for the userinfo endpoint