Skip to content

Callback configuration

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

You need to define a callback endpoint using the CallbackController only for web applications (that is for IndirectClient). The callback endpoint must not be protected.

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

While getters/setters can be used to define the options, the pac4j.callback.* properties can also be used. The additional pac4j.callback.path property (optional) allows to define the URL path of which the callback controller is triggered (/callback by default). This needs to match what you have registered with your identity provider.

The CallbackController must be defined by class scanning:

Spring configuration class:

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

The default internal components of the CallbackController are: SpringWebfluxSessionStore, SpringWebfluxHttpActionAdapter.INSTANCE, DefaultCallbackLogic.INSTANCE and SpringWebfluxWebContextFactory.INSTANCE.

Clone this wiki locally