Skip to content

fix: Identity packages per target framework, and System.Security.Cryptography.Xml 8.0.5 - #22

Merged
donwibier merged 2 commits into
masterfrom
fix/identity-packages-per-tfm
Oct 26, 2026
Merged

donwibier merged 2 commits into
masterfrom
fix/identity-packages-per-tfm

Conversation

@donwibier

Copy link
Copy Markdown
Owner

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.Identity and DX.Data.Xpo.AutoMapper referenced Microsoft.Extensions.Identity.Core/Stores 10.0.* for every target, net8.0 too. That brings Microsoft.AspNetCore.Cryptography.Internal 10.x into a net8.0 app, replacing the shared framework's 8.0 copy; the framework's Data Protection (8.0) then misses CryptoUtil.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.Xpo became a downgrade: NU1605 as an error on every fresh restore (here and in apps referencing DXWeb).

Versions

Package From To
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
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

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.
  • DX.Data.Xpo.Identity.Tests: 17 passed on net8.0 and net10.0.
  • DX.Data.Xpo.AutoMapper builds again (it failed on master with NU1605).
  • KwikEat Merchant (net8.0) on Linux against this branch: Cryptography.Internal 8.0.33 in bin, login works again.
  • Not built: DX.Data.Xpo.Mvc (net462, not on Linux).

🤖 Generated with Claude Code

donwibier and others added 2 commits October 26, 2026 13:34
…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>
@donwibier
donwibier merged commit f74b8da into master Oct 26, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant