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

Identity Server DefaultAntiforgeryTokenSerializer #2099

Open
HegyiOliver opened this issue May 7, 2024 · 0 comments
Open

Identity Server DefaultAntiforgeryTokenSerializer #2099

HegyiOliver opened this issue May 7, 2024 · 0 comments

Comments

@HegyiOliver
Copy link

Description

A frequent error in our log entries. Maybe related to the expiry of the token. It may be enough to just change the log level.

Stackstrace

at Microsoft.AspNetCore.Antiforgery.DefaultAntiforgeryTokenSerializer.Deserialize(String serializedToken)
at Microsoft.AspNetCore.Antiforgery.DefaultAntiforgery.GetCookieTokenDoesNotThrow(HttpContext httpContext)
--- Inner exception stack trace ---
at Microsoft.AspNetCore.DataProtection.KeyManagement.KeyRingBasedDataProtector.UnprotectCore(Byte[] protectedData, Boolean allowOperationsOnRevokedKeys, UnprotectStatus& status)
at Microsoft.AspNetCore.DataProtection.KeyManagement.KeyRingBasedDataProtector.Unprotect(Byte[] protectedData)
at Microsoft.AspNetCore.Antiforgery.DefaultAntiforgeryTokenSerializer.Deserialize(String serializedToken)

Reproduction

I couldn't figure out how to reproduce the error. However, I've found this issue on stackoverflow:

https://stackoverflow.com/questions/63444118/an-exception-was-thrown-while-deserializing-the-token-the-antiforgery-token-coul

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants