play-authenticate
play-authenticate copied to clipboard
auth method from Global is never used.
Using sample play-authenticate-usage I was trying to implement my own authentication. As comment said in auth method from Resolver created in Global.java I tried to override authenticate method. Anyway I figured out that method is never used. Text "TEST---" is never printed in terminal.
@Override public Call auth(final String provider) { System.out.println("TEST---") // You can provide your own authentication implementation, // however the default should be sufficient for most cases return com.feth.play.module.pa.controllers.routes.Authenticate .authenticate(provider); }
Am I doing something wrong? How to override authenticate() metod?