ValidUserCode Class
Indicates that the user code was successfully verified and the request is pending authorization.
public record ValidUserCode : Abblix.Oidc.Server.Features.DeviceAuthorization.UserCodeVerificationResult, System.IEquatable<Abblix.Oidc.Server.Features.DeviceAuthorization.ValidUserCode>Inheritance System.Object → UserCodeVerificationResult → ValidUserCode
Implements System.IEquatable<ValidUserCode>
Constructors
ValidUserCode(string, string[], Uri[], JsonArray) Constructor
Indicates that the user code was successfully verified and the request is pending authorization.
public ValidUserCode(string ClientId, string[] Scope, System.Uri[]? Resources, System.Text.Json.Nodes.JsonArray? AuthorizationDetails);Parameters
ClientId System.String
The client identifier that initiated the device authorization request.
Scope System.String[]
The requested scopes for the authorization.
Resources System.Uri[]
The requested resources (RFC 8707) for the authorization.
AuthorizationDetails System.Text.Json.Nodes.JsonArray
RFC 9396 §3 Rich Authorization Requests array from
the original /device_authorization request. The host's user-verification UI renders these
for consent and threads the user's decision onto the AuthorizedGrant's AuthorizationContext.
Nothing else does: approving with a grant that carries none issues a token with no
authorization_details at all, which RFC 9396 §9 leaves a resource server unable to
enforce. The approval logs that at warning level rather than repairing it, since only this
page knows what it showed the user.
Properties
ValidUserCode.AuthorizationDetails Property
RFC 9396 §3 Rich Authorization Requests array from
the original /device_authorization request. The host's user-verification UI renders these
for consent and threads the user's decision onto the AuthorizedGrant's AuthorizationContext.
Nothing else does: approving with a grant that carries none issues a token with no
authorization_details at all, which RFC 9396 §9 leaves a resource server unable to
enforce. The approval logs that at warning level rather than repairing it, since only this
page knows what it showed the user.
public System.Text.Json.Nodes.JsonArray? AuthorizationDetails { get; init; }Property Value
System.Text.Json.Nodes.JsonArray
ValidUserCode.ClientId Property
The client identifier that initiated the device authorization request.
public string ClientId { get; init; }Property Value
ValidUserCode.Resources Property
The requested resources (RFC 8707) for the authorization.
public System.Uri[]? Resources { get; init; }Property Value
ValidUserCode.Scope Property
The requested scopes for the authorization.
public string[] Scope { get; init; }