Repository navigation
Fix IdentityModel shared-components source build - #8190
Merged
Merged
Conversation
Co-authored-by: Copilot App <[email protected]> Copilot-Session: 5ebe0bfa-4e34-40a1-a595-5c68cd8084b4
|
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. |
Co-authored-by: Copilot App <[email protected]> Copilot-Session: 8baef734-4b16-4410-9754-24d3ce261b18
mthalman
marked this pull request as ready for review
August 7, 2026 17:45
|
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. |
lbussell
approved these changes
Aug 7, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
This PR backports #8152 to fix shared-components source-build failures caused by IdentityModel’s patch stack reverting the BCL.Cryptography/ML-DSA implementation and pulling an older Microsoft.Bcl.Cryptography dependency than the runtime-built one.
Changes:
- Pass an explicit
MicrosoftBclCryptographyVersioninto the IdentityModel external-package build so the source-build patch stack can carry a coherent Microsoft.Bcl.Cryptography version. - Remove the IdentityModel “revert Tokens change” patch so the upstream ML-DSA/BCL.Cryptography implementation is used.
- Add a source-build-only direct reference to
Microsoft.Bcl.Cryptographyindotnet-user-jwts, and flowMicrosoft.Bcl.Cryptographyas an aspnetcore dependency for restore coherency.
Reviewed changes
Copilot reviewed 6 out of 7 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| src/source-build-assets/src/externalPackages/projects/azure-activedirectory-identitymodel-extensions-for-dotnet.proj | Adds an msbuild property override so IdentityModel builds against the intended Microsoft.Bcl.Cryptography version in source-build. |
| src/source-build-assets/src/externalPackages/patches/azure-activedirectory-identitymodel-extensions-for-dotnet/0003-Revert-unneeded-Tokens-change.patch | Removes the patch that reverted the Tokens ML-DSA/BCL.Cryptography changes, allowing upstream behavior. |
| src/source-build-assets/eng/Versions.props | Introduces IdentityModelMicrosoftBclCryptographyVersion to drive the override used by the external package build. |
| src/aspnetcore/src/Tools/dotnet-user-jwts/src/dotnet-user-jwts.csproj | Adds a source-build-only direct reference to Microsoft.Bcl.Cryptography to force selection of the runtime-built package. |
| src/aspnetcore/eng/Version.Details.xml | Adds Microsoft.Bcl.Cryptography as a tracked dependency (dotnet/dotnet-sourced) for aspnetcore coherency. |
| src/aspnetcore/eng/Version.Details.props | Adds version properties for Microsoft.Bcl.Cryptography used by aspnetcore dependency resolution. |
| src/aspnetcore/eng/Dependencies.props | Adds Microsoft.Bcl.Cryptography to aspnetcore’s LatestPackageReference list so it can be resolved during restore when referenced. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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.
Backport of #8152
IdentityModel's current source-build patch stack reverts the BCL.Cryptography/ML-DSA implementation, preventing shared-components source builds from using the current runtime-built package.
This ports the fix from #8152 to
mainby removing the equivalent IdentityModel revert patch, carrying the coherent Microsoft.Bcl.Cryptography dependency through source-build-assets, and adding a source-build-only direct reference indotnet-user-jwtsso NuGet selects the current runtime-built package instead of the older transitive dependency.The remaining IdentityModel patches apply cleanly against the pinned source, and the dependency versions and source SHAs are coherent with the current
mainmappings.