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

[Feature Request] Improve error message when the distributed token cache is encrypted with Data Protection and decryption fails #4206

Closed
bgavrilMS opened this issue Jul 5, 2023 · 1 comment · Fixed by #4247

Comments

@bgavrilMS
Copy link
Member

See troubleshooting case for repro - https://github.com/AzureAD/microsoft-identity-web/wiki/Token-Cache-Troubleshooting#im-using-encryption-and-im-getting-deserialization-errors

We should catch / rethrow this exception with a better error message in the Id.Web.TokenCache project.

@jmprieur
Copy link
Contributor

jmprieur commented Jul 6, 2023

It's not token encryption, @bgavrilMS, it's encryption of the distributed cache.

@bgavrilMS bgavrilMS changed the title [Feature Request] Improve error message when token encryption is used and encryption keys are bad [Feature Request] Improve error message when the distributed token cache is encrypted with Data Protection and decryption fails Jul 7, 2023
@pmaytak pmaytak added this to the 4.52.2 milestone Jul 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
3 participants