IDeviceAuthorizationHandler Interface
Abblix.Oidc.Server
Abblix.Oidc.Server.Endpoints.DeviceAuthorization.Interfaces
IDeviceAuthorizationHandler Interface
Defines the contract for handling device authorization requests as specified in RFC 8628.
public interface IDeviceAuthorizationHandler
Derived
↳ DeviceAuthorizationHandler
Methods
IDeviceAuthorizationHandler.HandleAsync(DeviceAuthorizationRequest, ClientRequest) Method
Handles a device authorization request, validating and processing it to generate device_code and user_code for the client.
System.Threading.Tasks.Task<Abblix.Utils.Result<Abblix.Oidc.Server.Model.DeviceAuthorizationResponse,Abblix.Oidc.Server.Common.OidcError>> HandleAsync(Abblix.Oidc.Server.Model.DeviceAuthorizationRequest request, Abblix.Oidc.Server.Model.ClientRequest clientRequest);
Parameters
request DeviceAuthorizationRequest
The device authorization request from the client.
clientRequest ClientRequest
The client authentication information.
Returns
System.Threading.Tasks.Task<Abblix.Utils.Result<DeviceAuthorizationResponse,OidcError>>
A task that returns a result containing either a successful device authorization response
with device_code and user_code, or an OIDC error.