protected override void CheckToken(string pureToken, string state) { SystemWebAntiForgery.Validate(pureToken, state); }
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 }