Skip to content

Fix IdentityModel shared-components source build - #8152

Merged
mthalman merged 1 commit into
dotnet:release/10.0.1xxfrom
mthalman:mthalman-fix-identitymodel-shared-components
Aug 6, 2026
Merged

mthalman merged 1 commit into
dotnet:release/10.0.1xxfrom
mthalman:mthalman-fix-identitymodel-shared-components

Conversation

@mthalman

@mthalman mthalman commented Aug 5, 2026 •

Copy link
Copy Markdown
Member

This fixes dotnet/source-build#5626 by removing the IdentityModel BCL.Cryptography/ML-DSA revert and making the upstream implementation work in source-build.

The approach carries the exact previously source-built BCL.Cryptography version into IdentityModel, then adds a source-build-only direct reference from dotnet-user-jwts so ASP.NET Core selects the current runtime-built package instead of the older transitive package.

Fixes dotnet/source-build#5626

Co-authored-by: Copilot App <[email protected]>

Copilot-Session: 5ebe0bfa-4e34-40a1-a595-5c68cd8084b4
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).
1 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

@dotnet-policy-service
dotnet-policy-service Bot requested review from a team August 5, 2026 15:28
@mthalman
mthalman marked this pull request as ready for review August 5, 2026 15:34
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).
1 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

@mthalman
mthalman merged commit 4e51c82 into dotnet:release/10.0.1xx Aug 6, 2026
11 checks passed
@mthalman
mthalman deleted the mthalman-fix-identitymodel-shared-components branch August 6, 2026 20:16
@mthalman

mthalman commented Aug 6, 2026

Copy link
Copy Markdown
Member Author

/backport to release/10.0.4xx

@mthalman

mthalman commented Aug 6, 2026

Copy link
Copy Markdown
Member Author

/backport to main

@mthalman

mthalman commented Aug 7, 2026

Copy link
Copy Markdown
Member Author

/backport to release/10.0.4xx

@github-actions

github-actions Bot commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

Started backporting to release/10.0.4xx (link to workflow run)

@mthalman

mthalman commented Aug 7, 2026

Copy link
Copy Markdown
Member Author

/backport to main

@github-actions

github-actions Bot commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

Started backporting to main (link to workflow run)

@github-actions

github-actions Bot commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

@mthalman backporting to main failed, the patch most likely resulted in conflicts. Please backport manually!

git am output
$ git am --3way --empty=keep --ignore-whitespace --keep-non-patch changes.patch

Applying: Fix IdentityModel source-build cryptography resolution
Using index info to reconstruct a base tree...
M	src/aspnetcore/eng/Dependencies.props
M	src/aspnetcore/eng/Version.Details.props
M	src/aspnetcore/eng/Version.Details.xml
M	src/aspnetcore/src/Tools/dotnet-user-jwts/src/dotnet-user-jwts.csproj
M	src/source-build-assets/eng/Version.Details.props
M	src/source-build-assets/eng/Version.Details.xml
A	src/source-build-assets/src/externalPackages/patches/azure-activedirectory-identitymodel-extensions-for-dotnet/0001-Revert-10.0-BCL.Crypto-update.patch
A	src/source-build-assets/src/externalPackages/patches/azure-activedirectory-identitymodel-extensions-for-dotnet/0002-Patch-for-source-build.patch
M	src/source-build-assets/src/externalPackages/projects/azure-activedirectory-identitymodel-extensions-for-dotnet.proj
Falling back to patching base and 3-way merge...
Auto-merging src/aspnetcore/eng/Dependencies.props
Auto-merging src/aspnetcore/eng/Version.Details.props
CONFLICT (content): Merge conflict in src/aspnetcore/eng/Version.Details.props
Auto-merging src/aspnetcore/eng/Version.Details.xml
Auto-merging src/aspnetcore/src/Tools/dotnet-user-jwts/src/dotnet-user-jwts.csproj
Auto-merging src/source-build-assets/eng/Version.Details.props
CONFLICT (content): Merge conflict in src/source-build-assets/eng/Version.Details.props
Auto-merging src/source-build-assets/eng/Version.Details.xml
CONFLICT (content): Merge conflict in src/source-build-assets/eng/Version.Details.xml
Auto-merging src/source-build-assets/src/externalPackages/patches/azure-activedirectory-identitymodel-extensions-for-dotnet/0001-Patch-for-source-build.patch
CONFLICT (content): Merge conflict in src/source-build-assets/src/externalPackages/patches/azure-activedirectory-identitymodel-extensions-for-dotnet/0001-Patch-for-source-build.patch
CONFLICT (rename/delete): src/source-build-assets/src/externalPackages/patches/azure-activedirectory-identitymodel-extensions-for-dotnet/0001-Revert-10.0-BCL.Crypto-update.patch renamed to src/source-build-assets/src/externalPackages/patches/azure-activedirectory-identitymodel-extensions-for-dotnet/0003-Revert-unneeded-Tokens-change.patch in HEAD, but deleted in Fix IdentityModel source-build cryptography resolution.
CONFLICT (modify/delete): src/source-build-assets/src/externalPackages/patches/azure-activedirectory-identitymodel-extensions-for-dotnet/0003-Revert-unneeded-Tokens-change.patch deleted in Fix IdentityModel source-build cryptography resolution and modified in HEAD.  Version HEAD of src/source-build-assets/src/externalPackages/patches/azure-activedirectory-identitymodel-extensions-for-dotnet/0003-Revert-unneeded-Tokens-change.patch left in tree.
Auto-merging src/source-build-assets/src/externalPackages/projects/azure-activedirectory-identitymodel-extensions-for-dotnet.proj
CONFLICT (content): Merge conflict in src/source-build-assets/src/externalPackages/projects/azure-activedirectory-identitymodel-extensions-for-dotnet.proj
error: Failed to merge in the changes.
hint: Use 'git am --show-current-patch=diff' to see the failed patch
hint: When you have resolved this problem, run "git am --continue".
hint: If you prefer to skip this patch, run "git am --skip" instead.
hint: To restore the original branch and stop patching, run "git am --abort".
hint: Disable this message with "git config set advice.mergeConflict false"
Patch failed at 0001 Fix IdentityModel source-build cryptography resolution
Error: The process '/usr/bin/git' failed with exit code 128

Link to workflow output

@github-actions

github-actions Bot commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

@mthalman backporting to release/10.0.4xx failed, the patch most likely resulted in conflicts. Please backport manually!

git am output
$ git am --3way --empty=keep --ignore-whitespace --keep-non-patch changes.patch

Applying: Fix IdentityModel source-build cryptography resolution
Using index info to reconstruct a base tree...
A	src/aspnetcore/eng/Dependencies.props
A	src/aspnetcore/eng/Version.Details.props
A	src/aspnetcore/eng/Version.Details.xml
A	src/aspnetcore/src/Tools/dotnet-user-jwts/src/dotnet-user-jwts.csproj
Falling back to patching base and 3-way merge...
CONFLICT (modify/delete): src/aspnetcore/eng/Dependencies.props deleted in HEAD and modified in Fix IdentityModel source-build cryptography resolution.  Version Fix IdentityModel source-build cryptography resolution of src/aspnetcore/eng/Dependencies.props left in tree.
CONFLICT (modify/delete): src/aspnetcore/eng/Version.Details.props deleted in HEAD and modified in Fix IdentityModel source-build cryptography resolution.  Version Fix IdentityModel source-build cryptography resolution of src/aspnetcore/eng/Version.Details.props left in tree.
CONFLICT (modify/delete): src/aspnetcore/eng/Version.Details.xml deleted in HEAD and modified in Fix IdentityModel source-build cryptography resolution.  Version Fix IdentityModel source-build cryptography resolution of src/aspnetcore/eng/Version.Details.xml left in tree.
CONFLICT (modify/delete): src/aspnetcore/src/Tools/dotnet-user-jwts/src/dotnet-user-jwts.csproj deleted in HEAD and modified in Fix IdentityModel source-build cryptography resolution.  Version Fix IdentityModel source-build cryptography resolution of src/aspnetcore/src/Tools/dotnet-user-jwts/src/dotnet-user-jwts.csproj left in tree.
error: Failed to merge in the changes.
hint: Use 'git am --show-current-patch=diff' to see the failed patch
hint: When you have resolved this problem, run "git am --continue".
hint: If you prefer to skip this patch, run "git am --skip" instead.
hint: To restore the original branch and stop patching, run "git am --abort".
hint: Disable this message with "git config set advice.mergeConflict false"
Patch failed at 0001 Fix IdentityModel source-build cryptography resolution
Error: The process '/usr/bin/git' failed with exit code 128

Link to workflow output

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.

2 participants