I\'m making a simple authentication system using Playframework with their built-in CSRF filter and Security.Authenticator system, but I\'m facing a problem :
When the us
Add the below line in Global.java
@Override
public <T extends EssentialFilter> Class<T>[] filters() {
return new Class[]{CSRFFilter.class};
}
For this you have to import
import play.api.mvc.EssentialFilter;
import play.filters.csrf.CSRFFilter;
Hope this will help you
Finally the problem was located in an other part of my code that was cleaning the session in the login()
method, removing the csrf token with it ...