play-authenticate icon indicating copy to clipboard operation
play-authenticate copied to clipboard

auth method from Global is never used.

Open jezozwierzak opened this issue 10 years ago • 0 comments

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?

jezozwierzak avatar Nov 19 '13 10:11 jezozwierzak