Early Preview
This is currently very much a preview. Please feel free to try things out,
but don't be upset if anything is not yet working. Feedback is welcome over on our
GitHub Dicussions page.
class Duende.​IdentityServer.​Configuration.​IdentityServerOptions
Assembly: Duende.IdentityServer
Inheritance: object → IdentityServerOptions
The IdentityServerOptions class is the top level container for all configuration settings of IdentityServer.
Properties
public
string
IssuerUri
Gets or sets the unique name of this server instance, e.g. https://myissuer.com.
If not set, the issuer name is inferred from the request
public
bool
LowerCaseIssuerUri
Set to false to preserve the original casing of the IssuerUri. Defaults to true.
public
string
AccessTokenJwtType
Gets or sets the value for the JWT typ header for access tokens.
public
string
LogoutTokenJwtType
Gets or sets the value for the JWT typ header for logout tokens.
public
bool
EmitStaticAudienceClaim
Emits an aud claim with the format issuer/resources. That's needed for some older access token validation plumbing. Defaults to false.
public
bool
EmitScopesAsSpaceDelimitedStringInJwt
Specifies whether scopes in JWTs are emitted as array or string
public
bool
EmitIssuerIdentificationResponseParameter
Specifies whether authorize responses contain the iss parameter (https://www.rfc-editor.org/rfc/rfc9207.html)
public
bool
EmitStateHash
Specifies whether the s_hash claim gets emitted in identity tokens. Defaults to false.
public
bool
StrictJarValidation
Specifies whether the JWT typ and content-type for JWT secured authorization requests is checked according to IETF spec.
This might break older OIDC conformant request objects.
public
bool
ValidateTenantOnAuthorization
Specifies if a user's tenant claim is compared to the tenant acr_values parameter value to determine if the login page is displayed. Defaults to false.
public
EndpointsOptions
Endpoints
Gets or sets the endpoint configuration.
public
DiscoveryOptions
Discovery
Gets or sets the discovery endpoint configuration.
public
AuthenticationOptions
Authentication
Gets or sets the authentication options.
public
EventsOptions
Events
Gets or sets the events options.
public
InputLengthRestrictions
InputLengthRestrictions
Gets or sets the max input length restrictions.
public
UserInteractionOptions
UserInteraction
Gets or sets the options for the user interaction.
public
CachingOptions
Caching
Gets or sets the caching options.
public
CorsOptions
Cors
Gets or sets the cors options.
public
CspOptions
Csp
Gets or sets the Content Security Policy options.
public
ValidationOptions
Validation
Gets or sets the validation options.
public
DeviceFlowOptions
DeviceFlow
Gets or sets the device flow options.
public
CibaOptions
Ciba
Gets or sets the CIBA options.
public
LoggingOptions
Logging
Gets or sets the logging options
public
MutualTlsOptions
MutualTls
Gets or sets the mutual TLS options.
public
KeyManagementOptions
KeyManagement
Gets or sets the signing key management options.
PersistentGrants
Options for persisted grants.
public
DPoPOptions
DPoP
Options for DPoP.
public
string
LicenseKey
Gets or sets the license key.
public
DynamicProviderOptions
DynamicProviders
Options for dynamic external providers.
public
ServerSideSessionOptions
ServerSideSessions
Options for server-side sessions.
public
PushedAuthorizationOptions
PushedAuthorization
Options for Pushed Authorization Requests (PAR).
JwtValidationClockSkew
The allowed clock skew for JWT lifetime validation. This setting controls the clock skew of lifetime validation
for all JWTs except DPoP proofs, including
<list type="bullet">
<item>JWT access tokens passed to the user info, introspection, and local api endpoints</item>
<item>Authentication JWTs used in private_key_jwt authentication</item>
<item> JWT secured authorization requests (JAR request objects)</item>
<item> Custom usage of the <see cref="T:Duende.IdentityServer.Validation.TokenValidator" />, such as in a token exchange implementation.</item>
</list>
Defaults to five minutes.
public
System.​Collections.​Generic.​ICollection<​string>
SupportedRequestObjectSigningAlgorithms
<para>
Specifies the allowed signature algorithms for JWT secured authorization requests (JAR). The "alg" header of JAR
request objects is validated against this collection, and the
request_object_signing_alg_values_supported discovery property is populated with these values.
</para> <para>
Defaults to [RS256, RS384, RS512, PS256, PS384, PS512, ES256, ES384, ES512], which allows
the RSA, Probabilistic RSA, or ECDSA signing algorithms with 256, 384, or 512-bit SHA hashing.
</para> <para>
If set to an empty collection, all algorithms are allowed, but the request_object_signing_alg_values_supported
will not be set. Explicitly listing the expected values is recommended.
</para>
public
System.​Collections.​Generic.​ICollection<​string>
SupportedClientAssertionSigningAlgorithms
<para>
Specifies the allowed signature algorithms for client authentication using client assertions (the
private_key_jwt parameter). The "alg" header of client assertions is validated against this collection, and the
token_endpoint_auth_signing_alg_values_supported discovery property is populated with these values.
</para> <para>
Defaults to [RS256, RS384, RS512, PS256, PS384, PS512, ES256, ES384, ES512], which allows
the RSA, Probabilistic RSA, or ECDSA signing algorithms with 256, 384, or 512-bit SHA hashing.
</para> <para>
If set to an empty collection, all algorithms are allowed, but the
token_endpoint_auth_signing_alg_values_supported will not be set. Explicitly listing the expected values is
recommended.
</para>
public
PreviewFeatureOptions
Preview
Gets or sets the options for enabling and configuring preview features in the server.
Preview features provide access to experimental or in-progress functionality that may undergo
further changes before being finalized.
public
DiagnosticOptions
Diagnostics
Options that control the diagnostic data that is logged by IdentityServer.
Methods
public
bool
Equals​(object obj)
Inherited from object
protected
void
Finalize​()
Inherited from object
public
int
GetHashCode​()
Inherited from object
protected
object
MemberwiseClone​()
Inherited from object
public
string
ToString​()
Inherited from object