ResourceManagerExtensions Class
Abblix.Oidc.Server
Abblix.Oidc.Server.Features.ResourceIndicators
ResourceManagerExtensions Class
Provides extension methods for resource validation, leveraging a resource manager to ensure the validity and permissibility of requested resources.
public static class ResourceManagerExtensions
Inheritance System.Object → ResourceManagerExtensions
Methods
ResourceManagerExtensions.Validate(this IResourceManager, IEnumerable<Uri>, IEnumerable<string>, ResourceDefinition[], string) Method
Validates requested resources against registered resource definitions to confirm their validity and authorization. This method ensures that resources and the requested scopes within those resources are registered and allowed.
public static bool Validate(this Abblix.Oidc.Server.Features.ResourceIndicators.IResourceManager resourceManager, System.Collections.Generic.IEnumerable<System.Uri> resources, System.Collections.Generic.IEnumerable<string> scopes, out Abblix.Oidc.Server.Common.Constants.ResourceDefinition[] resourceDefinitions, out string errorDescription);
Parameters
resourceManager IResourceManager
The resource manager that maintains the definitions of resources.
resources System.Collections.Generic.IEnumerable<System.Uri>
A collection of URIs representing the resources being requested.
scopes System.Collections.Generic.IEnumerable<System.String>
A collection of scope identifiers associated with the request.
resourceDefinitions ResourceDefinition[]
Outputs an array of ResourceDefinition objects if the validation is successful, otherwise null.
errorDescription System.String
Outputs a string describing the reason for validation failure, otherwise null if the validation is successful.
Returns
System.Boolean
True if all requested resources and their corresponding scopes are valid and permissible,
false otherwise.