diff --git a/guide/migration/20-to-30.md b/guide/migration/20-to-30.md index 7362589..6ad02b1 100644 --- a/guide/migration/20-to-30.md +++ b/guide/migration/20-to-30.md @@ -98,6 +98,20 @@ services.AddOpenIddict() }); ``` +## Enable request caching + +If previously application was using request caching functionality, the new way to toggle request caching feature (previously `options.EnableRequestCaching()`) to use `OpenIddictServerAspNetCoreBuilder` class methods (divided into explicit methods): + +```csharp +services.AddOpenIddict() + .AddServer(options => + { + options.UseAspNetCore() + .EnableAuthorizationRequestCaching() + .EnableLogoutRequestCaching(); + }) +``` + ## Replace JSON.NET by `System.Text.Json` If you use JSON.NET to serialize or deserialize `OpenIdConnectMessage`, `OpenIdConnectRequest` or `OpenIdConnectResponse` instances, @@ -189,4 +203,4 @@ services.AddOpenIddict() New response type permissions - enforced by default - [have been introduced in 3.0](/configuration/application-permissions.html#response-type-permissions). If you have many applications to migrate, you can use [this script](https://github.com/openiddict/openiddict-core/issues/1138#issuecomment-713681158) -to infer appropriate response type permissions using the already granted grant types. \ No newline at end of file +to infer appropriate response type permissions using the already granted grant types.