Class DeviceAuthorizationResponseGenerator
- Namespace
- Duende.IdentityServer.ResponseHandling
- Assembly
- Duende.IdentityServer.dll
The device authorization response generator
public class DeviceAuthorizationResponseGenerator : IDeviceAuthorizationResponseGenerator
- Inheritance
-
DeviceAuthorizationResponseGenerator
- Implements
- Inherited Members
Constructors
DeviceAuthorizationResponseGenerator(IdentityServerOptions, IUserCodeService, IDeviceFlowCodeService, IClock, ILogger<DeviceAuthorizationResponseGenerator>)
Initializes a new instance of the DeviceAuthorizationResponseGenerator class.
public DeviceAuthorizationResponseGenerator(IdentityServerOptions options, IUserCodeService userCodeService, IDeviceFlowCodeService deviceFlowCodeService, IClock clock, ILogger<DeviceAuthorizationResponseGenerator> logger)
Parameters
options
IdentityServerOptionsThe options.
userCodeService
IUserCodeServiceThe user code service.
deviceFlowCodeService
IDeviceFlowCodeServiceThe device flow code service.
clock
IClockThe clock.
logger
ILogger<DeviceAuthorizationResponseGenerator>The logger.
- See Also
Fields
Clock
The clock
protected readonly IClock Clock
Field Value
- See Also
DeviceFlowCodeService
The device flow code service
protected readonly IDeviceFlowCodeService DeviceFlowCodeService
Field Value
- See Also
Logger
The logger
protected readonly ILogger Logger
Field Value
- See Also
Options
The options
protected readonly IdentityServerOptions Options
Field Value
- See Also
UserCodeService
The user code service
protected readonly IUserCodeService UserCodeService
Field Value
- See Also
Methods
ProcessAsync(DeviceAuthorizationRequestValidationResult, string)
Processes the response.
public virtual Task<DeviceAuthorizationResponse> ProcessAsync(DeviceAuthorizationRequestValidationResult validationResult, string baseUrl)
Parameters
validationResult
DeviceAuthorizationRequestValidationResultThe validation result.
baseUrl
stringThe base URL.
Returns
Exceptions
- ArgumentNullException
validationResult or Client
- ArgumentException
Value cannot be null or whitespace. - baseUrl
- See Also