Table of Contents

Class CachingCorsPolicyService<T>

Namespace
Duende.IdentityServer.Stores
Assembly
Duende.IdentityServer.dll

Caching decorator for ICorsPolicyService

public class CachingCorsPolicyService<T> : ICorsPolicyService where T : ICorsPolicyService

Type Parameters

T
Inheritance
CachingCorsPolicyService<T>
Implements
ICorsPolicyService
Inherited Members

Constructors

CachingCorsPolicyService(IdentityServerOptions, T, ICache<CorsCacheEntry>)

Initializes a new instance of the CachingResourceStore<T> class.

public CachingCorsPolicyService(IdentityServerOptions options, T inner, ICache<CachingCorsPolicyService<T>.CorsCacheEntry> corsCache)

Parameters

options IdentityServerOptions

The options.

inner T

The inner.

corsCache ICache<CachingCorsPolicyService<T>.CorsCacheEntry>

The CORS origin cache.

See Also
ICorsPolicyService

Methods

IsOriginAllowedAsync(string)

Determines whether origin is allowed.

public virtual Task<bool> IsOriginAllowedAsync(string origin)

Parameters

origin string

The origin.

Returns

Task<bool>
See Also
ICorsPolicyService

See Also

ICorsPolicyService