-
Notifications
You must be signed in to change notification settings - Fork 27
Callback configuration
CAS in the cloud LELEU Jérôme edited this page Dec 9, 2022
·
5 revisions
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:
<context:component-scan base-package="org.pac4j.springframework.web" />
@ComponentScan(basePackages = "org.pac4j.springframework.web")