You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Jérôme LELEU edited this page Oct 1, 2026
·
5 revisions
These instructions apply to 14.0.0. An indirect client needs a callback endpoint to complete authentication. Keep this endpoint outside the security filter and secured actions.
GET /callback @org.pac4j.play.CallbackController.callback(request: Request)
If your authentication protocol posts to the callback (for example SAML POST binding), also add the corresponding POST /callback route. Configure Play's CSRF handling for that protocol endpoint as required; an empty pac4j filter rule does not disable Play's other filters.
The security module examples already bind this controller. To customize that binding, use the following in configure():
The controller receives the shared pac4j Config through Play injection. Configure its session store with config.setSessionStoreFactory(...) in the security module.