Skip to main content

ScopeValidator Class

Abblix.Oidc.Server

Abblix.Oidc.Server.Endpoints.DeviceAuthorization.Validation

ScopeValidator Class

Validates the scopes requested in a device authorization request.

public class ScopeValidator : Abblix.Oidc.Server.Endpoints.DeviceAuthorization.Validation.IDeviceAuthorizationContextValidator

Inheritance System.Object → ScopeValidator

Implements IDeviceAuthorizationContextValidator

Constructors

ScopeValidator(IScopeManager) Constructor

Validates the scopes requested in a device authorization request.

public ScopeValidator(Abblix.Oidc.Server.Features.ScopeManagement.IScopeManager scopeManager);

Parameters

scopeManager IScopeManager

The service for managing and validating scopes.

Methods

ScopeValidator.ValidateAsync(DeviceAuthorizationValidationContext) Method

Validates the device authorization request context.

public System.Threading.Tasks.Task<Abblix.Oidc.Server.Common.OidcError?> ValidateAsync(Abblix.Oidc.Server.Endpoints.DeviceAuthorization.Validation.DeviceAuthorizationValidationContext context);

Parameters

context DeviceAuthorizationValidationContext

The validation context containing the request and client information.

Implements ValidateAsync(DeviceAuthorizationValidationContext)

Returns

System.Threading.Tasks.Task<OidcError>
An OIDC error if validation fails, or null if validation succeeds.