Table of Contents

Class DiscoveryOptions

Namespace
Fdyay.IdentityServer.Configuration
Assembly
Fdyay.IdentityServer.Core.dll

Controls what is emitted in the discovery document.

public class DiscoveryOptions
Inheritance
DiscoveryOptions
Inherited Members

Properties

CustomEntries

Members added to the discovery document after its own; one the document already has is not replaced. Duende's.

public Dictionary<string, object> CustomEntries { get; set; }

Property Value

Dictionary<string, object>

DiscoveryDocumentCacheDuration

How long a cached discovery document is served. Duende's; 1 minute by default.

public TimeSpan DiscoveryDocumentCacheDuration { get; set; }

Property Value

TimeSpan

EnableDiscoveryDocumentCache

Whether the discovery document is kept in the IDistributedCache. Duende's; off by default.

public bool EnableDiscoveryDocumentCache { get; set; }

Property Value

bool

ExpandRelativePathsInCustomEntries

Whether a CustomEntries string starting ~/ is expanded to a URL under the issuer. Duende's; on by default.

public bool ExpandRelativePathsInCustomEntries { get; set; }

Property Value

bool

ResponseCacheInterval

The max-age, in seconds, of the discovery document's and the key set's Cache-Control header; zero sends no-store. Duende's; null by default, which sends no Cache-Control header.

public int? ResponseCacheInterval { get; set; }

Property Value

int?

ShowApiScopes

Whether scopes_supported includes the enabled API scopes marked to show in discovery, plus offline_access. On by default.

public bool ShowApiScopes { get; set; }

Property Value

bool

ShowClaims

Whether discovery lists claims_supported: the user claims of every enabled identity resource, API resource and API scope. On by default.

public bool ShowClaims { get; set; }

Property Value

bool

ShowEndpoints

Whether discovery lists the endpoint URLs (authorization_endpoint, token_endpoint and the rest) and the members that describe them, such as request_parameter_supported. On by default.

public bool ShowEndpoints { get; set; }

Property Value

bool

Remarks

Only enabled endpoints are listed either way; see EndpointsOptions.

ShowExtensionGrantTypes

Whether grant_types_supported lists the extension grants a host registered. Duende's; on by default.

public bool ShowExtensionGrantTypes { get; set; }

Property Value

bool

ShowGrantTypes

Whether discovery lists grant_types_supported: the built-in grants, less CIBA while its endpoint is off, and the host's extension grants when ShowExtensionGrantTypes is on. On by default.

public bool ShowGrantTypes { get; set; }

Property Value

bool

ShowIdentityScopes

Whether scopes_supported includes the enabled identity resources marked to show in discovery. On by default.

public bool ShowIdentityScopes { get; set; }

Property Value

bool

ShowIntrospectionEndpointAuthenticationMethods

Whether discovery lists introspection_endpoint_auth_methods_supported (RFC 8414 §2), and its algorithms as for ShowTokenEndpointAuthenticationMethods. Duende's; on by default.

public bool ShowIntrospectionEndpointAuthenticationMethods { get; set; }

Property Value

bool

ShowKeySet

Whether discovery lists jwks_uri and the key set is served there. Duende's; on by default.

public bool ShowKeySet { get; set; }

Property Value

bool

Remarks

Until 0.139.0 the key set was served with this off, at a path the document no longer named.

ShowResponseModes

Whether discovery lists response_modes_supported. Duende's; on by default.

public bool ShowResponseModes { get; set; }

Property Value

bool

Remarks

Until 0.130.0 the list went with ShowResponseTypes; Duende has a switch of its own for it.

ShowResponseTypes

Whether discovery lists response_types_supported, which is code only. On by default.

public bool ShowResponseTypes { get; set; }

Property Value

bool

ShowRevocationEndpointAuthenticationMethods

Whether discovery lists revocation_endpoint_auth_methods_supported (RFC 8414 §2), and its algorithms as for ShowTokenEndpointAuthenticationMethods. Duende's; on by default.

public bool ShowRevocationEndpointAuthenticationMethods { get; set; }

Property Value

bool

ShowTokenEndpointAuthenticationMethods

Whether discovery lists token_endpoint_auth_methods_supported, and beside it the client-assertion algorithms when private_key_jwt is one of them. Duende's; on by default.

public bool ShowTokenEndpointAuthenticationMethods { get; set; }

Property Value

bool