Skip to main content

ValidUserCode Class

Abblix.Oidc.Server

Abblix.Oidc.Server.Features.DeviceAuthorization

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.ObjectUserCodeVerificationResult → 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.

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.

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

System.String

ValidUserCode.Resources Property

The requested resources (RFC 8707) for the authorization.

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

Property Value

System.Uri[]

ValidUserCode.Scope Property

The requested scopes for the authorization.

public string[] Scope { get; init; }

Property Value

System.String[]