duendesoftware/duende-skills/identityserver-upgrade-v7-to-v8
Claude Code and agent skill by duendesoftware/duende-skills
- community
- ext:[{"type":"plugin","description":"Custom plugin integration"}]
Checking that the SKILL.md file is still in the repository.
Migrating Duende IdentityServer from v7.4 to v8.0: breaking changes, API replacements (ICache→HybridCache, IClock→TimeProvider), CancellationToken additions, EF migrations, and step-by-step upgrade guide.
Install
npx vskill@latest install duendesoftware/duende-skills/identityserver-upgrade-v7-to-v8Semi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as duendesoftware/duende-skills/identityserver-upgrade-v7-to-v8.
Upgrading IdentityServer v7 to v8
When to Use This Skill
- Upgrading a Duende IdentityServer project from v7.4 to v8.0
- Fixing build errors after updating NuGet packages to v8
- Migrating custom stores/services to new v8 interfaces
- Running EF Core database migrations for v8 (SAML tables)
- Replacing deprecated APIs (ICache, IClock, IAuthorizationParametersMessageStore)
Core Principles
- v8.0 requires .NET 10 — update TFM before anything else
- All breaking changes are compile-time errors (no silent behavior changes)
- Migration is mechanical — find/replace patterns work for most changes
- Run EF migrations even if you don't use SAML (schema must match)
- Always check the latest stable 8.x package version on NuGet before upgrading — do not hardcode
8.0.1; use whatever the latest stable (non-prerelease) 8.x version is at the time of the upgrade.
Docs: https://docs.duendesoftware.com/identityserver/upgrades/v7_4-to-v8_0/
Step-by-Step Migration
1. Update Target Framework
2. Update NuGet Packages
Check NuGet for the latest stable 8.x version. At time of writing, that is 8.0.1, but use whatever is current:
3. Run EF Database Migrations
Two migrations are required — one for the Configuration Store and one for the Operational Store:
Both are required even if you don't use SAML (schema must match).
4. Replace ICache<T> with HybridCache
Key: use keyed service "ConfigurationStoreCache" (ServiceProviderKeys.ConfigurationStoreCache). CachingOptions.CacheLockTimeout is obsolete.
5. Replace IClock with TimeProvider
Note: GetUtcNow() (method) replaces UtcNow (property).
6. Add CancellationToken to All Async Interfaces
All store and service interfaces now require CancellationToken ct as the last parameter:
Affected interfaces include: IClientStore, IResourceStore, IPersistedGrantStore, IDeviceFlowStore, ICorsPolicyService, IProfileService, and all custom stores/services.
Also: ICancellationTokenProvider is removed entirely.
7. Add GetAllClientsAsync to IClientStore
Used by Financial-Grade Security features and conformance reports.
8. Update Refresh Token Service
9. Remove IAuthorizationParametersMessageStore
10. Fix Return Type Changes
Nine interfaces changed IEnumerable<T> → IReadOnlyCollection<T>:
11. Fix DPoP Type Names
12. Update Licensing Code
New v8 License Key Format
- v8 introduced a new license key file format: the v8 key is a signed JWT carrying a `kid` header.
- A v7/earlier key still works with v8 core — no new purchase is needed to run v8 core on an existing key.
- A v8 key does NOT work on v7/earlier OR on the BFF Security Framework runtime. It fails signature validation with Microsoft.IdentityModel error:
IDX10503: Signature validation failed. Token does not have a kid.- That exact error is the tell-tale sign of a v8 key loaded into a v7 or BFF runtime.
- Add-ons require a v8-format key in production: using SAML or Duende User Management in production on v8 REQUIRES a new v8-format license key. Older-format keys run v8 core, but not these add-ons in production.
Runtime License Enforcement Changed (behavioral reversal)
v8 validates feature usage at runtime. When a license IS present but lacks the entitlement, behavior splits into two tiers:
| Tier | Behavior when unlicensed | Features | |
|---|---|---|---|
| A | THROWS during startup validation | Server-Side Sessions, Automatic Key Management, SAML (IdP and Service Provider) | |
| B | LOGS a warning (rate-limited ~once/5 min) | DPoP, Resource Isolation, CIBA, Dynamic Identity Providers, Financial-grade/Conformance, User Management |
- If NO license is configured (local dev / non-prod), Tier-A features downgrade to logging instead of throwing.
- Guidance: use your production license key in lower environments so entitlement gaps (e.g. Server-Side Sessions) surface before production.
- Contrast with v7 and earlier: those versions disabled some features at runtime when unlicensed (Server-Side Sessions, DPoP, Resource Isolation, PAR, Dynamic Identity Providers, CIBA). v8 no longer disables — it logs or throws per the tiers above.
Editions → Plans
The product moved from fixed Starter / Business / Enterprise editions to generic plans. The old three editions are still honored for legacy/long-term customers only. The Community edition remains. Update any code or docs that hard-code "three editions" to reflect the plan model.
13. Update EF Identity Provider Store
14. Rename AuthorizationError → InteractionError
Values remain the same: AccessDenied, LoginRequired, InteractionRequired.
15. Rename DenyAuthorizationAsync → DenyAuthenticationAsync
16. Rename Client → Application on Profile Service Contexts
Both ProfileDataRequestContext and `IsActiveContext` replaced Client Client with IConnectedApplication? Application (v8 can serve SAML service providers). Client and SamlServiceProvider both implement IConnectedApplication; Identifier (client ID for OIDC, entity ID for SAML), DisplayName and Enabled are on the interface.
Your profile service may now be invoked for SAML requests: don't cast Application to Client unchecked. In IsActiveAsync those calls have context.Caller == IdentityServerConstants.ProfileIsActiveCallers.SamlSsoEndpoint.
17. Update ITokenValidator.ValidateAccessTokenAsync
18. Relocate PreviewFeatureOptions
PreviewFeatureOptions and IdentityServerOptions.Preview are removed. Options relocated:
Other Notable Changes
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/identityserver-upgrade-v7-to-v8/SKILL.md
Popularity
- Repository stars
- 9
- Repository forks
- 3
- 7-day trend score
- 0
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Extension points
pluginCustom plugin integration
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/duendesoftware/duende-skills/identityserver-upgrade-v7-to-v8)