Skip to main content

ResourceValidator Class

Abblix.Oidc.Server

Abblix.Oidc.Server.Endpoints.BackChannelAuthentication.Validation

ResourceValidator Class

Validates resources specified in authorization requests to ensure they conform to registered definitions and policies. This validator checks whether the resources requested in the authorization process are recognized by the system and permitted for the requesting client, extending the base functionality of resource validation by incorporating integration with the authorization context.

public class ResourceValidator : Abblix.Oidc.Server.Endpoints.BackChannelAuthentication.Validation.IBackChannelAuthenticationContextValidator

Inheritance System.Object → ResourceValidator

Implements IBackChannelAuthenticationContextValidator

Constructors

ResourceValidator(IResourceManager) Constructor

Validates resources specified in authorization requests to ensure they conform to registered definitions and policies. This validator checks whether the resources requested in the authorization process are recognized by the system and permitted for the requesting client, extending the base functionality of resource validation by incorporating integration with the authorization context.

public ResourceValidator(Abblix.Oidc.Server.Features.ResourceIndicators.IResourceManager resourceManager);

Parameters

resourceManager IResourceManager

The manager responsible for retrieving and validating resource information.

Methods

ResourceValidator.ValidateAsync(BackChannelAuthenticationValidationContext) Method

Performs the validation of resource identifiers specified in the authorization request against the allowed resource definitions managed by the IResourceManager. This method ensures that the resources requested are known to the system and align with security and access policies.

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

Parameters

context BackChannelAuthenticationValidationContext

The context containing the authorization request, which includes the resources to be validated.

Implements ValidateAsync(BackChannelAuthenticationValidationContext)

Returns

System.Threading.Tasks.Task<OidcError>
An AuthorizationRequestValidationError containing error details if validation fails, or null if the validation is successful, indicating that all requested resources are recognized and permissible.