Repository navigation
fix: Identity packages per target framework, and System.Security.Cryptography.Xml 8.0.5 - #22
Merged
Merged
Conversation
…s own Data Protection working DX.Data.Xpo.Identity and DX.Data.Xpo.AutoMapper referenced Microsoft.Extensions.Identity.Core/Stores 10.0.* for every target, net8.0 too. Identity.Core brings Microsoft.AspNetCore.Cryptography.Internal along, which is also part of the ASP.NET Core shared framework: in a net8.0 app the 10.0 copy replaced the framework's 8.0 one, and the framework's Data Protection (8.0) then missed CryptoUtil.TimeConstantBuffersAreEqual(byte[], ...). On Linux (managed encryptor) every antiforgery token failed to decrypt, so nobody could log in; on Windows (CNG) it happened not to be hit. Now 8.0.* for net8.0, 9.0.* for net9.0 and 10.0.* for net10.0. Verified with dotnet pack that the nuspec has those per target, and in KwikEat Merchant (net8.0) on Linux: Cryptography.Internal 8.0.33 in bin, login works again. DX.Data.Xpo.Identity 26.1.3.38 -> 26.1.3.39 DX.Data.Xpo.AutoMapper 26.1.3.36 -> 26.1.3.37 DX.Data.Xpo.Identity.Mapster 26.1.3.38 -> 26.1.3.39 DX.Data.Xpo.Identity.AutoMapper 26.1.3.37 -> 26.1.3.38 DX.Blazor.Identity 26.1.3.31 -> 26.1.3.32 DX.Blazor.Identity.Server 26.1.3.29 -> 26.1.3.30 DX.Blazor.Identity.Wasm 26.1.3.29 -> 26.1.3.30 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… with DevExpress.Xpo 26.1.6 DX.Data.Xpo pinned System.Security.Cryptography.Xml 8.0.4 (over the vulnerable 8.0.3 that DevExpress.Xpo brought). DevExpress.Xpo 26.1.6 asks for 8.0.5 itself, so with 26.1.* resolving to 26.1.6 the pin became a downgrade: NU1605 as an error on every fresh restore, in this repo and in apps that reference it. Now 8.0.5 (no NU1903 warnings for it). DX.Data.Xpo 26.1.3.38 -> 26.1.3.39 DX.Data.Xpo.Mapster 26.1.3.34 -> 26.1.3.35 DX.Data.Xpo.Mvc 26.1.3.18 -> 26.1.3.19 The identity chain is bumped by the previous commit already; its release notes now mention this too. Verified: dotnet pack of DX.Data.Xpo, DX.Data.Xpo.Mapster and DX.Data.Xpo.Identity(.Mapster) (the nuspecs depend on DX.Data.Xpo 26.1.3.39); DX.Data.Xpo.AutoMapper builds again; DX.Data.Xpo.Identity.Tests pass (net8.0, net10.0). DX.Data.Xpo.Mvc (net462) can't be built on Linux and wasn't. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Two fixes found while a KwikEat Merchant (net8.0) on Linux could no longer log in.
1. Identity packages per target framework
DX.Data.Xpo.IdentityandDX.Data.Xpo.AutoMapperreferencedMicrosoft.Extensions.Identity.Core/Stores10.0.* for every target, net8.0 too. That bringsMicrosoft.AspNetCore.Cryptography.Internal10.x into a net8.0 app, replacing the shared framework's 8.0 copy; the framework's Data Protection (8.0) then missesCryptoUtil.TimeConstantBuffersAreEqual(byte[], …). On Linux every antiforgery token failed to decrypt ("The antiforgery token could not be decrypted"), so login returned 400. On Windows (CNG encryptors) it happened not to be hit.Now 8.0.* / 9.0.* / 10.0.* per target.
2. System.Security.Cryptography.Xml 8.0.4 → 8.0.5
DevExpress.Xpo 26.1.6 asks for 8.0.5 itself, so the 8.0.4 pin in
DX.Data.Xpobecame a downgrade: NU1605 as an error on every fresh restore (here and in apps referencing DXWeb).Versions
Tested
dotnet pack: the nuspec of DX.Data.Xpo.Identity has Identity 8.0.33 / 9.0.22 / 10.0.14 per target; DX.Data.Xpo.Mapster depends on DX.Data.Xpo 26.1.3.39.🤖 Generated with Claude Code