Closed hounddog22030 closed 5 years ago
The Antiforgery framework in ASP.NET Core uses its underlying Data Protection framework that generates encryption keys as needed. By default the keys are persisted in memory or the file system. If you use our AWS Systems Manager ASP.NET Core Data Protection Provider package it will use AWS Systems Manager to keep the encryption key in sync for all of the compute environment running the ASP.NET Core application.
You rock (as usual)!
We're trying to do this with AWS Lambda Serverless and keep running into the error
Microsoft.AspNetCore.Mvc.ViewFeatures.Internal.AutoValidateAntiforgeryTokenAuthorizationFilter: Antiforgery token validation failed. The antiforgery token could not be decrypted.
I suspect it is because the Post is running on a different server?
We've tried the work-around in web.config and the IgnoreAntiforgeryTokenAttribute work-around.
Anyone else gotten this working?
Any thoughts?