Early Preview

This is currently very much a preview. Please feel free to try things out, but don't be upset if anything is not yet working. Feedback is welcome over on our GitHub Dicussions page.

interface Duende.​IdentityServer.​ResponseHandling.​IDeviceAuthorizationResponseGenerator

Assembly: Duende.IdentityServer

Generates the response returned from the device authorization endpoint (RFC 8628). The response contains the device code, user code, verification URI, and polling interval that the device uses to poll the token endpoint while the user completes authorization on a separate device. This interface is invoked after the device authorization request has been validated.

Remarks

The default implementation creates the device code and user code, stores them, and constructs the verification URIs. Override this interface or extend the default implementation to customize the device authorization response, for example to change the format of the user code or to add custom properties to the response.

Methods

ProcessAsync​(Validation.​DeviceAuthorizationRequestValidationResult validationResult, string baseUrl, System.​Threading.​CancellationToken ct)
Processes a validated device authorization request and produces the device authorization response.
Returns A <see cref="T:Duende.IdentityServer.ResponseHandling.DeviceAuthorizationResponse" /> containing the device code, user code, verification URI, verification URI with the user code embedded, expiration, and polling interval.
validationResult The result of validating the device authorization request, including the client and requested scopes.
baseUrl The base URL of the IdentityServer instance, used to construct the verification URI that is included in the response.
ct The cancellation token.