Skip to content

Logout configuration

CAS in the cloud LELEU Jérôme edited this page Dec 16, 2022 · 4 revisions

You need to define a logout endpoint using the LogoutController to handle logout.

>> Read the documentation to understand its behavior and the available options.

It is defined in the routes file:

GET     /logout     @org.pac4j.play.LogoutController.logout(request: Request)

And in the SecurityModule:

In Java:

LogoutController logoutController = new LogoutController();
logoutController.setDefaultUrl("/");
bind(LogoutController.class).toInstance(logoutController);

In Scala:

val logoutController = new LogoutController()
logoutController.setDefaultUrl("/")
bind(classOf[LogoutController]).toInstance(logoutController)
Clone this wiki locally