Skip to main content

DeviceAuthorizationRequest Class

Abblix.Oidc.Server

Abblix.Oidc.Server.Features.Storages.Proto

DeviceAuthorizationRequest Class

Represents a device authorization request (RFC 8628)

public sealed class DeviceAuthorizationRequest : Google.Protobuf.IMessage<Abblix.Oidc.Server.Features.Storages.Proto.DeviceAuthorizationRequest>, Google.Protobuf.IMessage, System.IEquatable<Abblix.Oidc.Server.Features.Storages.Proto.DeviceAuthorizationRequest>, Google.Protobuf.IDeepCloneable<Abblix.Oidc.Server.Features.Storages.Proto.DeviceAuthorizationRequest>, Google.Protobuf.IBufferMessage

Inheritance System.Object → DeviceAuthorizationRequest

Implements Google.Protobuf.IMessage<DeviceAuthorizationRequest>, Google.Protobuf.IMessage, System.IEquatable<DeviceAuthorizationRequest>, Google.Protobuf.IDeepCloneable<DeviceAuthorizationRequest>, Google.Protobuf.IBufferMessage

Fields

DeviceAuthorizationRequest.AuthorizationDetailsJsonFieldNumber Field

Field number for the "authorization_details_json" field.

public const int AuthorizationDetailsJsonFieldNumber = 8;

Field Value

System.Int32

DeviceAuthorizationRequest.AuthorizedGrantFieldNumber Field

Field number for the "authorized_grant" field.

public const int AuthorizedGrantFieldNumber = 7;

Field Value

System.Int32

DeviceAuthorizationRequest.ClientIdFieldNumber Field

Field number for the "client_id" field.

public const int ClientIdFieldNumber = 1;

Field Value

System.Int32

DeviceAuthorizationRequest.ExpiresAtFieldNumber Field

Field number for the "expires_at" field.

public const int ExpiresAtFieldNumber = 9;

Field Value

System.Int32

DeviceAuthorizationRequest.NextPollAtFieldNumber Field

Field number for the "next_poll_at" field.

public const int NextPollAtFieldNumber = 5;

Field Value

System.Int32

DeviceAuthorizationRequest.ResourcesFieldNumber Field

Field number for the "resources" field.

public const int ResourcesFieldNumber = 3;

Field Value

System.Int32

DeviceAuthorizationRequest.ScopeFieldNumber Field

Field number for the "scope" field.

public const int ScopeFieldNumber = 2;

Field Value

System.Int32

DeviceAuthorizationRequest.StatusFieldNumber Field

Field number for the "status" field.

public const int StatusFieldNumber = 6;

Field Value

System.Int32

DeviceAuthorizationRequest.UserCodeFieldNumber Field

Field number for the "user_code" field.

public const int UserCodeFieldNumber = 4;

Field Value

System.Int32

Properties

DeviceAuthorizationRequest.AuthorizationDetailsJson Property

RFC 9396 §3 authorization_details array, serialised as a JSON string. Same scheme as AuthorizationContext.proto / AuthorizationRequest.proto — byte-exact preservation of member order and type-specific payload until the user-verification step decides what to grant.

public string AuthorizationDetailsJson { get; set; }

Property Value

System.String

DeviceAuthorizationRequest.AuthorizedGrant Property

The authorized grant (set when user authorizes)

public Abblix.Oidc.Server.Features.Storages.Proto.AuthorizedGrant AuthorizedGrant { get; set; }

Property Value

AuthorizedGrant

DeviceAuthorizationRequest.ClientId Property

The client identifier that initiated the request

public string ClientId { get; set; }

Property Value

System.String

DeviceAuthorizationRequest.ExpiresAt Property

Absolute expiry (RFC 8628 §3.2 fixed lifetime); read to cap the remaining cache TTL

public Google.Protobuf.WellKnownTypes.Timestamp ExpiresAt { get; set; }

Property Value

Google.Protobuf.WellKnownTypes.Timestamp

DeviceAuthorizationRequest.HasAuthorizationDetailsJson Property

Gets whether the "authorization_details_json" field is set

public bool HasAuthorizationDetailsJson { get; }

Property Value

System.Boolean

DeviceAuthorizationRequest.NextPollAt Property

Next time the client should poll for updates

public Google.Protobuf.WellKnownTypes.Timestamp NextPollAt { get; set; }

Property Value

Google.Protobuf.WellKnownTypes.Timestamp

DeviceAuthorizationRequest.Resources Property

The requested resources (RFC 8707)

public Google.Protobuf.Collections.RepeatedField<string> Resources { get; }

Property Value

Google.Protobuf.Collections.RepeatedField<System.String>

DeviceAuthorizationRequest.Scope Property

The requested scopes

public Google.Protobuf.Collections.RepeatedField<string> Scope { get; }

Property Value

Google.Protobuf.Collections.RepeatedField<System.String>

DeviceAuthorizationRequest.Status Property

Current status of the authorization request

public Abblix.Oidc.Server.Features.Storages.Proto.DeviceAuthorizationStatus Status { get; set; }

Property Value

DeviceAuthorizationStatus

DeviceAuthorizationRequest.UserCode Property

The user-friendly code displayed to the user

public string UserCode { get; set; }

Property Value

System.String

Methods

DeviceAuthorizationRequest.ClearAuthorizationDetailsJson() Method

Clears the value of the "authorization_details_json" field

public void ClearAuthorizationDetailsJson();