|
|
|
@ -123,23 +123,23 @@ namespace Microsoft.Extensions.DependencyInjection |
|
|
|
=> Configure(options => options.EnableVerificationEndpointPassthrough = true); |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Enables authorization endpoint caching, so that authorization requests
|
|
|
|
/// Enables authorization request caching, so that authorization requests
|
|
|
|
/// are automatically stored in the distributed cache, which allows flowing
|
|
|
|
/// large payloads across requests. Enabling this option is recommended
|
|
|
|
/// when using external authentication providers or when large GET or POST
|
|
|
|
/// OpenID Connect authorization requests support is required.
|
|
|
|
/// </summary>
|
|
|
|
/// <returns>The <see cref="OpenIddictServerAspNetCoreBuilder"/>.</returns>
|
|
|
|
public OpenIddictServerAspNetCoreBuilder EnableAuthorizationEndpointCaching() |
|
|
|
=> Configure(options => options.EnableAuthorizationEndpointCaching = true); |
|
|
|
public OpenIddictServerAspNetCoreBuilder EnableAuthorizationRequestCaching() |
|
|
|
=> Configure(options => options.EnableAuthorizationRequestCaching = true); |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Enables logout endpoint caching, so that logout requests
|
|
|
|
/// Enables logout request caching, so that logout requests
|
|
|
|
/// are automatically stored in the distributed cache.
|
|
|
|
/// </summary>
|
|
|
|
/// <returns>The <see cref="OpenIddictServerAspNetCoreBuilder"/>.</returns>
|
|
|
|
public OpenIddictServerAspNetCoreBuilder EnableLogoutEndpointCaching() |
|
|
|
=> Configure(options => options.EnableLogoutEndpointCaching = true); |
|
|
|
public OpenIddictServerAspNetCoreBuilder EnableLogoutRequestCaching() |
|
|
|
=> Configure(options => options.EnableLogoutRequestCaching = true); |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Enables status code pages integration support. Once enabled, errors
|
|
|
|
@ -170,14 +170,14 @@ namespace Microsoft.Extensions.DependencyInjection |
|
|
|
/// </summary>
|
|
|
|
/// <param name="policy">The caching policy.</param>
|
|
|
|
/// <returns>The <see cref="OpenIddictServerAspNetCoreBuilder"/>.</returns>
|
|
|
|
public OpenIddictServerAspNetCoreBuilder SetAuthorizationEndpointCachingPolicy(DistributedCacheEntryOptions policy) |
|
|
|
public OpenIddictServerAspNetCoreBuilder SetAuthorizationRequestCachingPolicy(DistributedCacheEntryOptions policy) |
|
|
|
{ |
|
|
|
if (policy is null) |
|
|
|
{ |
|
|
|
throw new ArgumentNullException(nameof(policy)); |
|
|
|
} |
|
|
|
|
|
|
|
return Configure(options => options.AuthorizationEndpointCachingPolicy = policy); |
|
|
|
return Configure(options => options.AuthorizationRequestCachingPolicy = policy); |
|
|
|
} |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
@ -186,14 +186,14 @@ namespace Microsoft.Extensions.DependencyInjection |
|
|
|
/// </summary>
|
|
|
|
/// <param name="policy">The caching policy.</param>
|
|
|
|
/// <returns>The <see cref="OpenIddictServerAspNetCoreBuilder"/>.</returns>
|
|
|
|
public OpenIddictServerAspNetCoreBuilder SetLogoutEndpointCachingPolicy(DistributedCacheEntryOptions policy) |
|
|
|
public OpenIddictServerAspNetCoreBuilder SetLogoutRequestCachingPolicy(DistributedCacheEntryOptions policy) |
|
|
|
{ |
|
|
|
if (policy is null) |
|
|
|
{ |
|
|
|
throw new ArgumentNullException(nameof(policy)); |
|
|
|
} |
|
|
|
|
|
|
|
return Configure(options => options.LogoutEndpointCachingPolicy = policy); |
|
|
|
return Configure(options => options.LogoutRequestCachingPolicy = policy); |
|
|
|
} |
|
|
|
|
|
|
|
/// <inheritdoc/>
|
|
|
|
|