Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Unable to decrypt the authentication cookie generated in C# #7

Open
narunachalam opened this issue Mar 10, 2020 · 1 comment
Open

Comments

@narunachalam
Copy link

narunachalam commented Mar 10, 2020

Generated the cookie successfully using nodejs but decrypting in c# returns null:

FormsAuthenticationTicket ticket = FormsAuthentication.Decrypt(HttpContext.Current.Request.Cookies[".ASPXAUTH"].Value);

@durlabhjain
Copy link

I noticed .NET 4.5 compatibility mode has a different encryption/ decryption. I've added relevant code for decryption for now. You can use similar hints to add encryption compatibility for .NET 4.5 compatible auth cookies

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants