Configuration options for the CSRF filter
Configuration options for the CSRF filter
The key used to store the token in the Play session. Defaults to csrfToken.
If defined, causes the filter to store the token in a Cookie with this name instead of the session.
If storing the token in a cookie, whether this Cookie should set the secure flag. Defaults to whether the session cookie is configured to be secure.
Whether a new CSRF token should be created if it's not found. Default creates one if it's a GET request that accepts HTML.
This trait handles the CSRF error.
A CSRF token
A token provider, for generating and comparing tokens.
A token provider, for generating and comparing tokens.
This abstraction allows the use of randomised tokens.
Extract token from current request