Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add CaseSensitiveClaimsIdentity to 7x #2715

Merged
merged 10 commits into from
Jul 16, 2024
Merged

Add CaseSensitiveClaimsIdentity to 7x #2715

merged 10 commits into from
Jul 16, 2024

Conversation

keegan-caruso
Copy link
Contributor

pmaytak and others added 3 commits July 15, 2024 12:35
* Add CaseSensitiveClaimsIdentity. Update JsonWebTokenHandler.

* Move switch to a separate class. Update claims identity creation code.

* Add test.

* Update AppContextSwitches

* Update test/Microsoft.IdentityModel.Tokens.Tests/CaseSensitiveClaimsIdentityTests.cs

Co-authored-by: msbw2 <brettwhite@microsoft.com>

* Update comments.

* Update ClaimsIdentity code creation in src.

* Add tests.

* Update tests to use correct types.

* Add SecurityToken property to CsClaimsIdentity.

* Update tests to use CsClaimsIdentity.

* Refactor code into ClaimsIdentityFactory.

* Update tests.

* Update ClaimsIdentityFactory.

* Fix tests.

* Update tests for CaseSensitiveClaimsIdentity

* ignore SecurityToken in IdentityComparer

* Set security token in ClaimsIdentityFactory. Add tests.

* Apply suggestions from code review

* Update test.

---------

Co-authored-by: msbw2 <brettwhite@microsoft.com>
Co-authored-by: Keegan Caruso <keegancaruso@microsoft.com>
@keegan-caruso keegan-caruso requested a review from a team as a code owner July 15, 2024 20:54
Co-authored-by: Peter <34331512+pmaytak@users.noreply.github.com>
keegan-caruso and others added 3 commits July 15, 2024 16:24
Co-authored-by: Peter <34331512+pmaytak@users.noreply.github.com>
…2716)

* Call TVP.CreateClaimsIdentity to support users that have overloaded.

* picked up SAML changes and TokenValidationResult

* updated JwtSecurityTokenHandler, reverted tests and removed method.

* touched up tests

---------

Co-authored-by: id4s <user@contoso.com>
@keegan-caruso keegan-caruso force-pushed the pmaytak/cs-claims-7x branch from 7edcbbf to febd644 Compare July 16, 2024 01:50
…enHandler.cs

Co-authored-by: Peter <34331512+pmaytak@users.noreply.github.com>
@jennyf19 jennyf19 merged commit 6d6a22e into dev7x Jul 16, 2024
2 checks passed
@keegan-caruso keegan-caruso deleted the pmaytak/cs-claims-7x branch July 16, 2024 16:33
jennyf19 added a commit that referenced this pull request Jul 18, 2024
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.

4 participants