Skip to main content

IResourceManager Interface

Abblix.Oidc.Server

Abblix.Oidc.Server.Features.ResourceIndicators

IResourceManager Interface

Looks up ResourceDefinition entries registered for the authorization server, supporting validation of the resource parameter defined by RFC 8707 (Resource Indicators for OAuth 2.0) at the authorization, token, and PAR endpoints.

public interface IResourceManager

Derived
ResourceManager

Remarks

Acts as the registry that decides whether a requested resource URI corresponds to an audience the server is willing to mint tokens for, and which scopes that resource accepts.

Methods

IResourceManager.TryGet(Uri, ResourceDefinition) Method

Attempts to retrieve the resource definition associated with the specified URI.

bool TryGet(System.Uri resource, out Abblix.Oidc.Server.Common.Constants.ResourceDefinition definition);

Parameters

resource System.Uri

The URI identifying the resource for which the definition is requested.

definition ResourceDefinition

When this method returns, contains the resource definition associated with the specified URI, if the resource is found; otherwise, null. This parameter is passed uninitialized.

Returns

System.Boolean
true if the resource definition is found; otherwise, false.