Document baseUrl Support for OIDC Logout

Fixes gh-8072
This commit is contained in:
Josh Cummings 2020-03-06 14:13:22 -07:00
parent 4ef37f289e
commit 69e1034ddc
No known key found for this signature in database
GPG Key ID: 49EF60DD7FF83443
1 changed files with 5 additions and 2 deletions

View File

@ -1307,11 +1307,14 @@ public class OAuth2LoginSecurityConfig extends WebSecurityConfigurerAdapter {
OidcClientInitiatedLogoutSuccessHandler oidcLogoutSuccessHandler =
new OidcClientInitiatedLogoutSuccessHandler(this.clientRegistrationRepository);
// Sets the `URI` that the End-User's User Agent will be redirected to
// Sets the location that the End-User's User Agent will be redirected to
// after the logout has been performed at the Provider
oidcLogoutSuccessHandler.setPostLogoutRedirectUri(URI.create("https://localhost:8080"));
oidcLogoutSuccessHandler.setPostLogoutRedirectUri("{baseUrl}");
return oidcLogoutSuccessHandler;
}
}
NOTE: `OidcClientInitiatedLogoutSuccessHandler` supports the `{baseUrl}` placeholder.
If used, the application's base URL, like `https://app.example.org`, will replace it at request time.
----