Exemple #1
0
 protected override void CheckToken(string pureToken, string state)
 {
     SystemWebAntiForgery.Validate(pureToken, state);
 }
Exemple #2
0
 protected override void GenerateTokens(string existingToKeepToken, out string toSend, out string toKeep)
 {
     SystemWebAntiForgery.GetTokens(existingToKeepToken, out toKeep, out toSend);
     toKeep = toKeep ?? existingToKeepToken; // toKeep == null if the existing token is A-OK
 }