Early Preview

This is currently very much a preview. Please feel free to try things out, but don't be upset if anything is not yet working. Feedback is welcome over on our GitHub Dicussions page.

class Duende.​IdentityServer.​Hosting.​DynamicProviders.​IdentityProviderOptionsMonitorCache

Assembly: Duende.IdentityServer

Inheritance: object → IdentityProviderOptionsMonitorCache

Tracks previously observed <see cref="T:Duende.IdentityServer.Models.IdentityProvider" /> instances per scheme and evicts the corresponding ASP.NET Core <see cref="T:Microsoft.Extensions.Options.IOptionsMonitorCache`1" /> entry when a provider's configuration has changed. This allows the authentication handler options to stay in sync with the identity provider store without requiring an HTTP context for service resolution.

Methods

public bool
EnsureCacheUpdated​(Models.​IdentityProvider identityProvider)
Ensures the options monitor cache is up to date for the given identity provider. If the provider has changed since it was last observed, the corresponding <see cref="T:Microsoft.Extensions.Options.IOptionsMonitorCache`1" /> entry is evicted so the authentication handler will pick up the new configuration.
Returns <c>true</c> if the cache entry was evicted because the provider changed; <c>false</c> otherwise.
identityProvider The identity provider to check.
public bool
Equals​(object obj)
Inherited from object
protected void
Finalize​()
Inherited from object
public int
GetHashCode​()
Inherited from object
GetType​()
Inherited from object
protected object
MemberwiseClone​()
Inherited from object
public string
ToString​()
Inherited from object