Skip to content

Callback configuration

CAS in the cloud LELEU Jérôme edited this page Nov 25, 2021 · 3 revisions

You need to define a callback endpoint using the CallbackFilter 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.

Example:

final CallbackHandlerOptions callbackHandlerOptions = new CallbackHandlerOptions().setDefaultUrl("/").setMultiProfile(true);
final CallbackHandler callbackHandler = new CallbackHandler(vertx, sessionStore, config, callbackHandlerOptions);
router.get("/callback").handler(callbackHandler);
router.post("/callback").handler(BodyHandler.create().setMergeFormAttributes(true));
router.post("/callback").handler(callbackHandler);
Clone this wiki locally