Table of Contents

Interface IDeviceAuthorizationRequestValidator

Namespace
Fdyay.IdentityServer.Validation
Assembly
Fdyay.IdentityServer.Core.dll

Validates a device authorization request.

public interface IDeviceAuthorizationRequestValidator

Remarks

Duende 8.0.1's IDeviceAuthorizationRequestValidator, measured: an oidc client registered for the device grant (unauthorized_client otherwise); no scope takes the client's allowed scopes, with offline_access when it may have it, and a client with none is invalid_scope; a scope longer than Scope is invalid_request; the scopes are validated as the client's (invalid_scope), and identity scopes without openid are invalid_scope.

Methods

ValidateAsync(IReadOnlyDictionary<string, string>, ClientSecretValidationResult, CancellationToken)

Validates a device authorization request from an authenticated client.

Task<DeviceAuthorizationRequestValidationResult> ValidateAsync(IReadOnlyDictionary<string, string> parameters, ClientSecretValidationResult clientValidationResult, CancellationToken ct)

Parameters

parameters IReadOnlyDictionary<string, string>

The request's form parameters.

clientValidationResult ClientSecretValidationResult

The outcome of authenticating the client that sent the request.

ct CancellationToken

Cancels the validation.

Returns

Task<DeviceAuthorizationRequestValidationResult>

The validated request, or the error to answer with.