Skip to content

Commit 3903ac4

Browse files
committed
Document baseUrl Support for OIDC Logout
Fixes gh-8072
1 parent 894a19b commit 3903ac4

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

docs/manual/src/docs/asciidoc/_includes/servlet/oauth2/oauth2-login.adoc

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1307,11 +1307,14 @@ public class OAuth2LoginSecurityConfig extends WebSecurityConfigurerAdapter {
13071307
OidcClientInitiatedLogoutSuccessHandler oidcLogoutSuccessHandler =
13081308
new OidcClientInitiatedLogoutSuccessHandler(this.clientRegistrationRepository);
13091309
1310-
// Sets the `URI` that the End-User's User Agent will be redirected to
1310+
// Sets the location that the End-User's User Agent will be redirected to
13111311
// after the logout has been performed at the Provider
1312-
oidcLogoutSuccessHandler.setPostLogoutRedirectUri(URI.create("https://localhost:8080"));
1312+
oidcLogoutSuccessHandler.setPostLogoutRedirectUri("{baseUrl}");
13131313
13141314
return oidcLogoutSuccessHandler;
13151315
}
13161316
}
1317+
1318+
NOTE: `OidcClientInitiatedLogoutSuccessHandler` supports the `{baseUrl}` placeholder.
1319+
If used, the application's base URL, like `https://app.example.org`, will replace it at request time.
13171320
----

0 commit comments

Comments
 (0)