Class AuthorizationCode
- Namespace
- Fdyay.IdentityServer.Models
- Assembly
- Fdyay.IdentityServer.Core.dll
An issued authorization code awaiting exchange at the token endpoint.
public class AuthorizationCode
- Inheritance
-
AuthorizationCode
- Inherited Members
Properties
Claims
The subject's claims captured at authorization time.
public ICollection<Claim> Claims { get; set; }
Property Value
ClientId
The client the code was issued to.
public string ClientId { get; set; }
Property Value
CodeChallenge
The PKCE code challenge.
public string? CodeChallenge { get; set; }
Property Value
CodeChallengeMethod
The PKCE code challenge method (plain or S256).
public string? CodeChallengeMethod { get; set; }
Property Value
CreationTime
When the code was created (UTC).
public DateTime CreationTime { get; set; }
Property Value
DPoPKeyThumbprint
The DPoP key this code may only be redeemed by (RFC 9449 ยง10).
public string? DPoPKeyThumbprint { get; set; }
Property Value
Remarks
Defence against a stolen code being redeemed under the thief's own key. PKCE stops the code being redeemed at all by anyone who lacks the verifier; this stops the token that comes back being bound to the wrong key where they do.
Description
The name the user gave this grant when approving it, for their list of grants. Duende's.
public string? Description { get; set; }
Property Value
IsOpenId
Whether the request included the openid scope.
public bool IsOpenId { get; set; }
Property Value
Lifetime
The code lifetime in seconds.
public int Lifetime { get; set; }
Property Value
Nonce
The nonce to echo in the identity token.
public string? Nonce { get; set; }
Property Value
Properties
A host's own values, kept with the code until it is redeemed. Duende's.
public IDictionary<string, string> Properties { get; set; }
Property Value
Remarks
Nothing here reads or writes them: they are stored with the code and read back with it, for a host that sets them
where the code is made and reads them where it is redeemed (ValidatedTokenRequest.AuthorizationCode).
RedirectUri
The redirect URI the code was bound to.
public string RedirectUri { get; set; }
Property Value
RequestedResourceIndicators
The API the authorization request named as a resource indicator (RFC 8707), if it named one.
public ICollection<string> RequestedResourceIndicators { get; set; }
Property Value
Remarks
A collection, as in Duende, though this server accepts one indicator at the authorization endpoint: the shape leaves room for several without a change of type, and empty means the request named none.
RequestedScopes
The scopes granted.
public ICollection<string> RequestedScopes { get; set; }
Property Value
SessionId
The session id, if any.
public string? SessionId { get; set; }
Property Value
SubjectId
The subject id.
public string SubjectId { get; set; }