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

Adds an AppContext switch to control HMAC key size verification. #2421

Merged
merged 1 commit into from
Nov 30, 2023

Conversation

brentschmaltz
Copy link
Member

Conforming with https://datatracker.ietf.org/doc/html/rfc7518#section-3.2 causes some users to fault.
The AppContext switch "Switch.Microsoft.IdentityModel.UnsafeRelaxHmacKeySizeValidation" can be used bypass this new check.

HMAC will still require a minimum of 128 bits.

@brentschmaltz brentschmaltz merged commit bba5cf0 into dev6x Nov 30, 2023
1 check passed
@brentschmaltz brentschmaltz deleted the brentsch/VerifyKeySize6x branch January 2, 2024 21:36
@nikcio
Copy link

nikcio commented Jan 25, 2024

@brentschmaltz I can see this is part of v6.35.0. Do you know if it will also become part of v7 at some point?

@ajoaquincardozo
Copy link

@brentschmaltz coming back on this - are you aware if this change is planned to be included in version 7 or future releases?

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.

5 participants