Interface IDeviceAuthorizationResponseGenerator
- Namespace
- Fdyay.IdentityServer.ResponseHandling
- Assembly
- Fdyay.IdentityServer.Core.dll
Issues the device and user codes a validated device authorization request is answered with.
public interface IDeviceAuthorizationResponseGenerator
Remarks
Duende 8.0.1's IDeviceAuthorizationResponseGenerator, measured: a user code from the client's generator, or the
server default's, generated again while one is taken, up to the generator's RetryLimit; the verification URI on
the server's base URL when it is local, as configured when it is not; the complete URI only when a user code
parameter is configured; the device code stored with the request's client, scopes, openid-ness and description.
Methods
ProcessAsync(DeviceAuthorizationRequestValidationResult, string, CancellationToken)
Generates and stores the codes for a validated request and builds the response for the device.
Task<DeviceAuthorizationResponse> ProcessAsync(DeviceAuthorizationRequestValidationResult validationResult, string baseUrl, CancellationToken ct)
Parameters
validationResultDeviceAuthorizationRequestValidationResultThe successfully validated device authorization request.
baseUrlstringThe server's base URL, which a local verification URL is resolved against.
ctCancellationTokenCancels the code generation and storage.
Returns
- Task<DeviceAuthorizationResponse>
The device code, user code, verification URIs, lifetime and polling interval.