Skip to content

Add CaseSensitiveClaimsIdentity to 7x#2715

Merged
jennyf19 merged 10 commits into
dev7xfrom
pmaytak/cs-claims-7x
Jul 16, 2024
Merged

Add CaseSensitiveClaimsIdentity to 7x#2715
jennyf19 merged 10 commits into
dev7xfrom
pmaytak/cs-claims-7x

Conversation

@keegan-caruso

Copy link
Copy Markdown
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
Comment thread src/Microsoft.IdentityModel.Tokens/AppContextSwitches.cs Outdated
Co-authored-by: Peter <34331512+pmaytak@users.noreply.github.com>
Comment thread src/Microsoft.IdentityModel.Tokens/AppContextSwitches.cs Outdated
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>
Comment thread src/Microsoft.IdentityModel.Tokens.Saml/Saml2/Saml2SecurityTokenHandler.cs Outdated
@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>
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