AntiForgeryTokenSet Class

Summary

The anti-forgery token pair (cookie and form token) for a request.

Syntax

public class AntiForgeryTokenSet

GitHub

View on GitHub

class Microsoft.AspNet.Mvc.AntiForgeryTokenSet

Constructors

AntiForgeryTokenSet(System.String, System.String)

Creates the anti-forgery token pair (cookie and form token) for a request.

Arguments:
  • formToken (System.String) – The token that is supplied in the request form body.
  • cookieToken (System.String) – The token that is supplied in the request cookie.
public AntiForgeryTokenSet(string formToken, string cookieToken)

Properties

CookieToken()
Return type:System.String
public string CookieToken { get; }
FormToken()

The token that is supplied in the request form body.

Return type:System.String
public string FormToken { get; }