Class OpenIddictResponse
- Namespace
- OpenIddict.Abstractions
- Assembly
- OpenIddict.Abstractions.dll
Represents a generic OpenIddict response.
[JsonConverter(typeof(OpenIddictConverter))]
public class OpenIddictResponse : OpenIddictMessage
- Inheritance
-
OpenIddictResponse
- Inherited Members
Remarks
Security notice: developers instantiating this type are responsible for ensuring that the imported parameters are safe and won't cause the resulting message to grow abnormally, which may result in an excessive memory consumption and a potential denial of service.
Constructors
OpenIddictResponse()
Initializes a new OpenIddict response.
public OpenIddictResponse()
OpenIddictResponse(IEnumerable<KeyValuePair<string, StringValues>>)
Initializes a new OpenIddict response.
public OpenIddictResponse(IEnumerable<KeyValuePair<string, StringValues>> parameters)
Parameters
parametersIEnumerable<KeyValuePair<string, StringValues>>The response parameters.
Remarks
Parameters with a null or empty key are always ignored.
OpenIddictResponse(IEnumerable<KeyValuePair<string, OpenIddictParameter>>)
Initializes a new OpenIddict response.
public OpenIddictResponse(IEnumerable<KeyValuePair<string, OpenIddictParameter>> parameters)
Parameters
parametersIEnumerable<KeyValuePair<string, OpenIddictParameter>>The response parameters.
Remarks
Parameters with a null or empty key are always ignored.
OpenIddictResponse(IEnumerable<KeyValuePair<string, string?[]?>>)
Initializes a new OpenIddict response.
public OpenIddictResponse(IEnumerable<KeyValuePair<string, string?[]?>> parameters)
Parameters
parametersIEnumerable<KeyValuePair<string, string[]>>The response parameters.
Remarks
Parameters with a null or empty key are always ignored.
OpenIddictResponse(IEnumerable<KeyValuePair<string, string?>>)
Initializes a new OpenIddict response.
public OpenIddictResponse(IEnumerable<KeyValuePair<string, string?>> parameters)
Parameters
parametersIEnumerable<KeyValuePair<string, string>>The response parameters.
Remarks
Parameters with a null or empty key are always ignored.
OpenIddictResponse(NameValueCollection)
Initializes a new OpenIddict response.
public OpenIddictResponse(NameValueCollection parameters)
Parameters
parametersNameValueCollectionThe response parameters.
Remarks
Parameters with a null or empty key are always ignored.
OpenIddictResponse(JsonElement)
Initializes a new OpenIddict response.
public OpenIddictResponse(JsonElement parameters)
Parameters
parametersJsonElementThe response parameters.
Remarks
Parameters with a null or empty key are always ignored.
OpenIddictResponse(JsonObject)
Initializes a new OpenIddict response.
public OpenIddictResponse(JsonObject parameters)
Parameters
parametersJsonObjectThe response parameters.
Remarks
Parameters with a null or empty key are always ignored.
Properties
AccessToken
Gets or sets the "access_token" parameter.
public string? AccessToken { get; set; }
Property Value
Code
Gets or sets the "code" parameter.
public string? Code { get; set; }
Property Value
DeviceCode
Gets or sets the "device_code" parameter.
public string? DeviceCode { get; set; }
Property Value
Error
Gets or sets the "error" parameter.
public string? Error { get; set; }
Property Value
ErrorDescription
Gets or sets the "error_description" parameter.
public string? ErrorDescription { get; set; }
Property Value
ErrorUri
Gets or sets the "error_uri" parameter.
public string? ErrorUri { get; set; }
Property Value
ExpiresIn
Gets or sets the "expires_in" parameter.
public long? ExpiresIn { get; set; }
Property Value
- long?
IdToken
Gets or sets the "id_token" parameter.
public string? IdToken { get; set; }
Property Value
Iss
Gets or sets the "iss" parameter.
public string? Iss { get; set; }
Property Value
RefreshToken
Gets or sets the "refresh_token" parameter.
public string? RefreshToken { get; set; }
Property Value
Scope
Gets or sets the "scope" parameter.
public string? Scope { get; set; }
Property Value
State
Gets or sets the "state" parameter.
public string? State { get; set; }
Property Value
TokenType
Gets or sets the "token_type" parameter.
public string? TokenType { get; set; }
Property Value
UserCode
Gets or sets the "user_code" parameter.
public string? UserCode { get; set; }
Property Value
VerificationUri
Gets or sets the "verification_uri" parameter.
public string? VerificationUri { get; set; }
Property Value
VerificationUriComplete
Gets or sets the "verification_uri_complete" parameter.
public string? VerificationUriComplete { get; set; }