Skip to content

Commit 5d7c29a

Browse files
Add upgrade guide for Duende IdentityServer v7.1 to v7.2
This guide details steps to upgrade Duende IdentityServer from v7.1 to v7.2, including NuGet package updates and data protection configuration considerations. It also highlights new features, bug fixes, and improvements in the latest release.
1 parent 28ede18 commit 5d7c29a

1 file changed

Lines changed: 40 additions & 0 deletions

File tree

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
---
2+
title: "Duende IdentityServer v7.1 to v7.2"
3+
weight: 28
4+
---
5+
6+
This upgrade guide covers upgrading from Duende IdentityServer v7.1 to v7.2 ([release notes](https://github.com/DuendeSoftware/IdentityServer/releases/tag/7.2.0)).
7+
8+
## What's New
9+
Duende IdentityServer 7.2 adds:
10+
- Do not issue *TokenIssuedFailureEvent* for *use_dpop_nonce* error
11+
- Use *AsyncServiceScope* in Background Services
12+
- Use query-safe URL fragment when returning an error
13+
- Add an option for strict validation of assertion audiences
14+
- General improvements to XML documentation and null reference exception handling
15+
- Preview Features: Strict Audience Validation and Discovery Document Caching
16+
- Bug fixes and ongoing maintenance
17+
18+
There are no changes to the data stores in this release.
19+
20+
## Step 1: Update NuGet package
21+
22+
In your IdentityServer host project, update the version of the NuGet.
23+
For example in your project file:
24+
25+
```
26+
<PackageReference Include="Duende.IdentityServer" Version="7.1.0" />
27+
```
28+
29+
would change to:
30+
31+
```
32+
<PackageReference Include="Duende.IdentityServer" Version="7.2.0" />
33+
```
34+
35+
## Step 2: Verify Data Protection Configuration
36+
IdentityServer depends on ASP.NET Data Protection. Data Protection encrypts and signs data using keys managed by ASP.NET. Those keys are isolated by application name, which by default is set to the content root path of the host. This prevents multiple applications from sharing encryption keys, which is necessary to protect your encryption against certain forms of attack. However, this means that if your content root path changes, the default settings for data protection will prevent you from using your old keys. Beginning in .NET 6, the content root path was normalized so that it ends with a directory separator. In .NET 7 that change was reverted. This means that your content root path might change if you upgrade from .NET 6 to .NET 7. This can be mitigated by explicitly setting the application name and removing the separator character. See [Microsoft's documentation for more information](https://learn.microsoft.com/en-us/aspnet/core/security/data-protection/configuration/overview?view=aspnetcore-7.0#setapplicationname).
37+
38+
## Step 3: Done!
39+
40+
That's it. Of course, at this point you can and should test that your IdentityServer is updated and working properly.

0 commit comments

Comments
 (0)