Skip to content

Logout configuration

CAS in the cloud LELEU Jérôme edited this page Aug 9, 2022 · 1 revision

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

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

While getters/setters can be used to define the options, the pac4j.logout.* properties can also be used. The additional pac4j.logout.path property (optional) allows to define the path of which the logout controller is triggered (/logout by default).

The LogoutController must be defined by classpath scanning:

Spring configuration class:

@ComponentScan(basePackages = "org.pac4j.springframework.web")

The default internal components of the LogoutController are: SpringWebfluxSessionStore, SpringWebfluxHttpActionAdapter.INSTANCE, DefaultLogoutLogic.INSTANCE and SpringWebfluxWebContextFactory.INSTANCE.

Clone this wiki locally