mirror of
https://gitee.com/dcren/openiddict-documentation.git
synced 2025-07-16 07:59:46 +08:00
Add a section about request caching in the 2.x -> 3.x migration guide
This commit is contained in:
parent
a41726af1b
commit
dcd042f2f2
@ -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`
|
## Replace JSON.NET by `System.Text.Json`
|
||||||
|
|
||||||
If you use JSON.NET to serialize or deserialize `OpenIdConnectMessage`, `OpenIdConnectRequest` or `OpenIdConnectResponse` instances,
|
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).
|
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)
|
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.
|
to infer appropriate response type permissions using the already granted grant types.
|
||||||
|
Loading…
Reference in New Issue
Block a user