Table of Contents

Interface IConfigurationManagerCache

Namespace
Auth0.AspNetCore.Authentication.Api.CustomDomains
Assembly
Auth0.AspNetCore.Authentication.Api.dll

Abstraction for caching OpenID Connect configuration managers.

public interface IConfigurationManagerCache : IDisposable
Inherited Members

Remarks

Implement this interface to provide custom caching behavior for configuration managers. The SDK provides two built-in implementations:

Methods

Clear()

Clears all cached entries.

void Clear()

GetOrCreate(string, Func<string, IConfigurationManager<OpenIdConnectConfiguration>>)

Gets an existing configuration manager from the cache or creates a new one using the factory.

IConfigurationManager<OpenIdConnectConfiguration> GetOrCreate(string metadataAddress, Func<string, IConfigurationManager<OpenIdConnectConfiguration>> factory)

Parameters

metadataAddress string

The OIDC metadata endpoint URL, used as the cache key.

factory Func<string, IConfigurationManager<OpenIdConnectConfiguration>>

Factory function to create a new configuration manager if not cached.

Returns

IConfigurationManager<OpenIdConnectConfiguration>

The cached or newly created configuration manager.