I keep getting the following error "Antiforgery token validation failed. The provided antiforgery token was meant for a different claims-based user than the current user." The environment I'm using is load balanced and we are persisting the keys to SQL Server.
Its a .NET Core 3 application and I'm using Role based authentication instead of policy. I have a custom role provider which gets the users roles from a webservice call. I've implemented the code found here https://gist.github.com/DamienBraillard/4dbd6aa2c56edf5a8e57c59b6e08da94 with my custom role provider. This works fine and everything is good until i hit an environment with a load balancer. I cant understand why I'm getting this error as I'm the same user on both nodes. I've provided the SQL Server anti forgery code below incase it may be something to do with that.