[2.5/Java] play-pac4j now works with Deadbolt

69 views
Skip to first unread message

Jérôme LELEU

unread,
Sep 21, 2016, 4:27:12 AM9/21/16
to Play Framework
Hi,

As some of you may already know, play-pac4j is a full security library for Play (Java & Scala) supporting authentication & authorizations.

There have been a few requests for Deadbolt support on our mailing list (mainly for painless migration): so here it is.

A first implementation is available in Java to use play-pac4j and Deadbolt together: https://github.com/pac4j/play-pac4j/tree/master/src/main/java/org/pac4j/play/deadbolt2

You can test it with the following demo: https://github.com/pac4j/play-pac4j-java-demo

@SubjectPresent(handlerKey = "FacebookClient", forceBeforeAuthCheck = true) will protect your action and request Facebook authentication.

I haven't done any work for Scala right now, but I'm sure contributions can fill the gap.

Any feedback will be appreciated.

Thanks.
Best regards,
Jérôme

Reply all
Reply to author
Forward
0 new messages