DeviceAuthorizationRequest Class
The device authorization request (RFC 8628). The bound properties, BindAsync and the projection onto the
core model are generated from DeviceAuthorizationRequest by the Minimal API model source
generator.
public record DeviceAuthorizationRequest : System.IEquatable<Abblix.Oidc.Server.MinimalApi.Model.DeviceAuthorizationRequest>Inheritance System.Object → DeviceAuthorizationRequest
Implements System.IEquatable<DeviceAuthorizationRequest>
Properties
DeviceAuthorizationRequest.AuthorizationDetails Property
RFC 9396 §3 Rich Authorization Requests array stored as the raw wire
System.Text.Json.Nodes.JsonArray. Device flows accept authorization_details by spec
reference (RFC 9396 §3 cites RFC 8628); the array carries through to the eventual
access token issued via the device-code grant byte-exact.
public System.Text.Json.Nodes.JsonArray? AuthorizationDetails { get; init; }Property Value
System.Text.Json.Nodes.JsonArray
DeviceAuthorizationRequest.Resources Property
Specifies the resource for which the access token is requested. As defined in RFC 8707, this parameter requests access tokens with a specific scope for a particular resource.
public System.Uri[]? Resources { get; init; }Property Value
DeviceAuthorizationRequest.Scope Property
A space-separated list of scopes requested by the client. Scopes define the level of access requested and the types of information the client wants to retrieve.
public string[]? Scope { get; init; }Property Value
Methods
DeviceAuthorizationRequest.BindAsync(HttpContext) Method
Binds the model from the request's form, query, headers and TLS connection.
public static System.Threading.Tasks.ValueTask<Abblix.Oidc.Server.MinimalApi.Model.DeviceAuthorizationRequest?> BindAsync(Microsoft.AspNetCore.Http.HttpContext context);Parameters
context Microsoft.AspNetCore.Http.HttpContext
Returns
System.Threading.Tasks.ValueTask<DeviceAuthorizationRequest>
Operators
DeviceAuthorizationRequest.implicit operator DeviceAuthorizationRequest(DeviceAuthorizationRequest) Operator
Projects the transport-bound model onto its core counterpart.
public static Abblix.Oidc.Server.Model.DeviceAuthorizationRequest implicit operator Abblix.Oidc.Server.Model.DeviceAuthorizationRequest(Abblix.Oidc.Server.MinimalApi.Model.DeviceAuthorizationRequest request);