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.​InputLengthRestrictions

Assembly: Duende.IdentityServer

Inheritance: object → InputLengthRestrictions

Maximum allowed lengths for protocol request parameters. Requests that exceed these limits are rejected with a validation error.

Properties

public int
ClientId
Gets or sets the maximum allowed length for the <c>client_id</c> parameter. Defaults to 100.
public int
ClientSecret
Gets or sets the maximum allowed length for external client secrets. Defaults to 100.
public int
Scope
Gets or sets the maximum allowed length for the <c>scope</c> parameter. Defaults to 300.
public int
RedirectUri
Gets or sets the maximum allowed length for the <c>redirect_uri</c> parameter. Defaults to 400.
public int
Nonce
Gets or sets the maximum allowed length for the <c>nonce</c> parameter. Defaults to 300.
public int
UiLocale
Gets or sets the maximum allowed length for the <c>ui_locale</c> parameter. Defaults to 100.
public int
LoginHint
Gets or sets the maximum allowed length for the <c>login_hint</c> parameter. Defaults to 100.
public int
AcrValues
Gets or sets the maximum allowed length for the <c>acr_values</c> parameter. Defaults to 300.
public int
GrantType
Gets or sets the maximum allowed length for the <c>grant_type</c> parameter. Defaults to 100.
public int
UserName
Gets or sets the maximum allowed length for the <c>username</c> parameter. Defaults to 100.
public int
Password
Gets or sets the maximum allowed length for the <c>password</c> parameter. Defaults to 100.
public int
CspReport
Gets or sets the maximum allowed length for Content Security Policy report bodies. Defaults to 2000.
public int
IdentityProvider
Gets or sets the maximum allowed length for external identity provider names. Defaults to 100.
public int
ExternalError
Gets or sets the maximum allowed length for error messages returned by external identity providers. Defaults to 100.
public int
AuthorizationCode
Gets or sets the maximum allowed length for authorization codes. Defaults to 100.
public int
DeviceCode
Gets or sets the maximum allowed length for device codes used in the device authorization flow. Defaults to 100.
public int
RefreshToken
Gets or sets the maximum allowed length for refresh token handles. Defaults to 100.
public int
TokenHandle
Gets or sets the maximum allowed length for reference token handles. Defaults to 100.
public int
Jwt
Gets or sets the maximum allowed length for JWT strings (e.g., request objects, client assertions). Defaults to 51200 (50 KB).
public int
CodeChallengeMinLength
Gets the minimum required length for the PKCE <c>code_challenge</c> parameter. Defaults to 43.
Remarks The minimum of 43 characters is specified by <see href="https://datatracker.ietf.org/doc/html/rfc7636">RFC 7636</see> .
public int
CodeChallengeMaxLength
Gets the maximum allowed length for the PKCE <c>code_challenge</c> parameter. Defaults to 128.
Remarks The maximum of 128 characters is specified by <see href="https://datatracker.ietf.org/doc/html/rfc7636">RFC 7636</see> .
public int
CodeVerifierMinLength
Gets the minimum required length for the PKCE <c>code_verifier</c> parameter. Defaults to 43.
Remarks The minimum of 43 characters is specified by <see href="https://datatracker.ietf.org/doc/html/rfc7636">RFC 7636</see> .
public int
CodeVerifierMaxLength
Gets the maximum allowed length for the PKCE <c>code_verifier</c> parameter. Defaults to 128.
Remarks The maximum of 128 characters is specified by <see href="https://datatracker.ietf.org/doc/html/rfc7636">RFC 7636</see> .
public int
ResourceIndicatorMaxLength
Gets the maximum allowed length for the <c>resource</c> indicator parameter. Defaults to 512.
public int
BindingMessage
Gets or sets the maximum allowed length for the CIBA <c>binding_message</c> parameter. Defaults to 100.
public int
UserCode
Gets or sets the maximum allowed length for the device flow <c>user_code</c> parameter. Defaults to 100.
public int
IdTokenHint
Gets or sets the maximum allowed length for the <c>id_token_hint</c> parameter. Defaults to 4000.
public int
LoginHintToken
Gets or sets the maximum allowed length for the CIBA <c>login_hint_token</c> parameter. Defaults to 4000.
public int
AuthenticationRequestId
Gets or sets the maximum allowed length for the CIBA <c>auth_req_id</c> parameter. Defaults to 100.
public int
DPoPKeyThumbprint
Gets or sets the maximum allowed length for the DPoP <c>dpop_jkt</c> (key thumbprint) parameter. Defaults to 100.
public int
DPoPProofToken
Gets or sets the maximum allowed length for DPoP proof token strings. Defaults to 4000.

Methods

public bool
Equals​(object obj)
Inherited from object
protected void
Finalize​()
Inherited from object
public int
GetHashCode​()
Inherited from object
GetType​()
Inherited from object
protected object
MemberwiseClone​()
Inherited from object
public string
ToString​()
Inherited from object