Table of Contents

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 IdentityServerOptions

The options.

userCodeService IUserCodeService

The user code service.

deviceFlowCodeService IDeviceFlowCodeService

The device flow code service.

clock IClock

The clock.

logger ILogger<DeviceAuthorizationResponseGenerator>

The logger.

See Also

Fields

Clock

The clock

protected readonly IClock Clock

Field Value

IClock
See Also

DeviceFlowCodeService

The device flow code service

protected readonly IDeviceFlowCodeService DeviceFlowCodeService

Field Value

IDeviceFlowCodeService
See Also

Logger

The logger

protected readonly ILogger Logger

Field Value

ILogger
See Also

Options

The options

protected readonly IdentityServerOptions Options

Field Value

IdentityServerOptions
See Also

UserCodeService

The user code service

protected readonly IUserCodeService UserCodeService

Field Value

IUserCodeService
See Also

Methods

ProcessAsync(DeviceAuthorizationRequestValidationResult, string)

Processes the response.

public virtual Task<DeviceAuthorizationResponse> ProcessAsync(DeviceAuthorizationRequestValidationResult validationResult, string baseUrl)

Parameters

validationResult DeviceAuthorizationRequestValidationResult

The validation result.

baseUrl string

The base URL.

Returns

Task<DeviceAuthorizationResponse>

Exceptions

ArgumentNullException

validationResult or Client

ArgumentException

Value cannot be null or whitespace. - baseUrl

See Also

See Also