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

[Bug] Incorrectly Encoded JWK Format in RSA Public Key Export #4881

Closed
gladjohn opened this issue Aug 5, 2024 · 0 comments · Fixed by #4878
Closed

[Bug] Incorrectly Encoded JWK Format in RSA Public Key Export #4881

gladjohn opened this issue Aug 5, 2024 · 0 comments · Fixed by #4878
Assignees
Milestone

Comments

@gladjohn
Copy link
Contributor

gladjohn commented Aug 5, 2024

Library version used

pre release

.NET version

A recent pre-release regression was introduced in the RSA public key export function, leading to improperly encoded JSON Web Key (JWK) parameters.

Scenario

ConfidentialClient - service to service (AcquireTokenForClient)

Is this a new or an existing app?

This is a new app or experiment

Issue description and reproduction steps

  • Export an in memory key.
  • Observe the generated JWK string.
  • Attempt to use the JWK in cryptographic operations or with external systems expecting a correctly formatted JWK.

Relevant code snippets

No response

Expected behavior

correct JWK expected that matches that one used in token validation

Identity provider

Microsoft Entra ID (Work and School accounts and Personal Microsoft accounts)

Regression

pre-release

Solution and workarounds

No response

@gladjohn gladjohn added untriaged Do not delete. Needed for Automation needs attention Delete label after triage labels Aug 5, 2024
@gladjohn gladjohn removed untriaged Do not delete. Needed for Automation needs attention Delete label after triage labels Aug 5, 2024
@gladjohn gladjohn added this to the 4.63.0 milestone Aug 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment