Class OpenIddictServerEvents.ApplyTokenResponseContext
Represents an event called before the token response is returned to the caller.
Inheritance
System.Object
OpenIddictServerEvents.ApplyTokenResponseContext
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ToString()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: OpenIddict.Server
Assembly: cs.temp.dll.dll
Syntax
public class ApplyTokenResponseContext : OpenIddictServerEvents.BaseRequestContext
Constructors
ApplyTokenResponseContext(OpenIddictServerTransaction)
Creates a new instance of the OpenIddictServerEvents.ApplyTokenResponseContext class.
Declaration
public ApplyTokenResponseContext(OpenIddictServerTransaction transaction)
Parameters
Type | Name | Description |
---|---|---|
OpenIddictServerTransaction | transaction |
Properties
Error
Gets the error code returned to the client application.
When the response indicates a successful response,
this property returns null
.
Declaration
public string Error { get; }
Property Value
Type | Description |
---|---|
System.String |
Principal
Gets or sets the security principal used to forge the token response.
Declaration
public ClaimsPrincipal? Principal { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<ClaimsPrincipal> |
Request
Gets or sets the request, or null
if it couldn't be extracted.
Declaration
public OpenIddictRequest? Request { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<OpenIddictRequest> |
Response
Gets or sets the response.
Declaration
public OpenIddictResponse Response { get; set; }
Property Value
Type | Description |
---|---|
OpenIddictResponse |