Skip to main content

ResponseTypes Class

Abblix.Oidc.Server

Abblix.Oidc.Server.Common.Constants

ResponseTypes Class

Represents common response types used in OAuth 2.0 and OpenID Connect flows.

public static class ResponseTypes

Inheritance System.Object → ResponseTypes

Remarks

Reference: https://openid.net/specs/oauth-v2-multiple-response-types-1\_0.html

Fields

ResponseTypes.Code Field

Represents the "code" response type, indicating the authorization code response type. This is used in the Authorization Code Flow to request an authorization code for later exchange.

public const string Code = "code";

Field Value

System.String

ResponseTypes.IdToken Field

Represents the "id_token" response type, indicating the ID token response type. This is used to request only an ID token in the response, typically in OpenID Connect scenarios.

public const string IdToken = "id_token";

Field Value

System.String

ResponseTypes.None Field

Represents the "none" response type (OAuth 2.0 Multiple Response Type Encoding Practices §4). The authorization request runs to completion but the response returns no authorization code and no tokens — only state and, when advertised, iss (RFC 9207). It authorizes a grant without returning credentials to the client at that time. This value MUST NOT be combined with any other response type.

public const string None = "none";

Field Value

System.String

ResponseTypes.Token Field

Represents the "token" response type, indicating the token response type. This is used in Implicit Flow to directly issue tokens to the client without using an authorization code.

public const string Token = "token";

Field Value

System.String