ResourceManager Class
Abblix.Oidc.Server
Abblix.Oidc.Server.Features.ResourceIndicators
ResourceManager Class
In-memory IResourceManager backed by Resources. Indexes the configured ResourceDefinition entries by their absolute URI for O(1) lookup during RFC 8707 resource indicator validation.
public class ResourceManager : Abblix.Oidc.Server.Features.ResourceIndicators.IResourceManager
Inheritance System.Object → ResourceManager
Implements IResourceManager
Remarks
The dictionary is built once at construction time from the snapshot of options; subsequent changes to the options instance are not reflected.
Constructors
ResourceManager(IOptions<OidcOptions>) Constructor
In-memory IResourceManager backed by Resources. Indexes the configured ResourceDefinition entries by their absolute URI for O(1) lookup during RFC 8707 resource indicator validation.
public ResourceManager(Microsoft.Extensions.Options.IOptions<Abblix.Oidc.Server.Common.Configuration.OidcOptions> options);
Parameters
options Microsoft.Extensions.Options.IOptions<OidcOptions>
The OIDC options containing resource definitions to be registered.
Remarks
The dictionary is built once at construction time from the snapshot of options; subsequent changes to the options instance are not reflected.
Methods
ResourceManager.TryGet(Uri, ResourceDefinition) Method
Attempts to retrieve the resource definition associated with the specified URI.
public 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.
Implements TryGet(Uri, ResourceDefinition)
Returns
System.Boolean
true if the resource definition is found; otherwise, false.