Zum Inhalt springen
Diese Seite wurde noch nicht übersetzt.

ValidUserCode Class

Indicates that the user code was successfully verified and the request is pending authorization.

C#
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.

C#
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.

C#
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.

C#
public string ClientId { get; init; }

Property Value

System.String

ValidUserCode.Resources Property

The requested resources (RFC 8707) for the authorization.

C#
public System.Uri[]? Resources { get; init; }

Property Value

System.Uri[]

ValidUserCode.Scope Property

The requested scopes for the authorization.

C#
public string[] Scope { get; init; }

Property Value

System.String[]