Skip to main content

DeviceAuthorizationResponse Class

Abblix.Oidc.Server

Abblix.Oidc.Server.Model

DeviceAuthorizationResponse Class

Represents a successful device authorization response as defined in RFC 8628. This response contains the device code the client uses to poll the token endpoint and the user code the device displays to the user for entry on a separate device.

public record DeviceAuthorizationResponse : System.IEquatable<Abblix.Oidc.Server.Model.DeviceAuthorizationResponse>

Inheritance System.Object → DeviceAuthorizationResponse

Implements System.IEquatable<DeviceAuthorizationResponse>

Properties

DeviceAuthorizationResponse.DeviceCode Property

The device verification code used by the client to poll the token endpoint. This is a high-entropy string that uniquely identifies the authorization request.

public string DeviceCode { get; init; }

Property Value

System.String

DeviceAuthorizationResponse.ExpiresIn Property

The lifetime of the device_code and user_code. After this duration, the codes expire and the client must start a new request.

public System.TimeSpan ExpiresIn { get; init; }

Property Value

System.TimeSpan

DeviceAuthorizationResponse.Interval Property

The minimum interval (in seconds) that the client should wait between polling requests to the token endpoint.

public System.TimeSpan Interval { get; init; }

Property Value

System.TimeSpan

DeviceAuthorizationResponse.UserCode Property

The end-user verification code displayed to the user. This is a short, user-friendly code that the user enters on the verification page.

public string UserCode { get; init; }

Property Value

System.String

DeviceAuthorizationResponse.VerificationUri Property

The end-user verification URI where the user enters the user code (RFC 8628 §3.2). Carried on the wire DTO and filled by the transport layer from the configured device authorization options; the protocol processor leaves it unset.

public System.Uri? VerificationUri { get; init; }

Property Value

System.Uri

DeviceAuthorizationResponse.VerificationUriComplete Property

The optional verification URI that already embeds the user code (RFC 8628 §3.2), letting capable devices render a direct link or QR code so the user skips typing the code. Filled by the transport layer.

public System.Uri? VerificationUriComplete { get; init; }

Property Value

System.Uri