I'm using MVC3 with Razor view engine.
I need to generate a different AntiForgeryToken for each user.
I'm thinking of generating a unique salt value and store it in users table when the users registers, and to use that salt to generate the token, but how can I bypass that salt value to the attribute ValidateAntiForgeryToken
. I think I need to define a customized attribute but I don't know how would that go (with getting access to user information to use the salt value).
Thanks in advance.