Not sure why it matters but here you go, assuming you're asking about URLs and not deployment infrastructure.
The OIDC provider is a Keycloak instance; the application uses an embedded Jetty server with ServletContext (so no war or web.xml). pac4j is wired up entirely programmatically (no pac4j-config).
That's why currently I just created my LogoutFilter with a hardcoded defaultUrl of "/", assuming the actual post_logout_redirect_uri would be resolved from the request.
Full code for creating the filter (the 'config' only contains a KeycloakOidcClient and a matcher to exclude static resources):
var logoutFilter = new LogoutFilter(config, "/");
logoutFilter.setDestroySession(true);
logoutFilter.setCentralLogout(true);
context.addFilter(new FilterHolder(logoutFilter), "/logout", null);
In dev currently, because I didn't configure a baseUrl in the Keycloak client for my application (as it could equally be localhost:8081 or localhost:9200), Keycloak displays a "you are logged out" page with no "back to application" link. I was expecting that pac4j would redirect to Keycloak with a post_logout_redirect_uri so Keycloak would just redirect back to my application without even showing the "you are logged out" page. But currently pac4j "expects" me (the code in its current form at least, not necessarily the expected behavior) to configure the LogoutFilter with a full "
http://localhost:8081/" or "
http://localhost:9200/".
Fwiw, the problem is here in the code (form my debugging sessions and my understanding of pac4j internals):