mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-03-03 03:49:09 +00:00
Document baseUrl Support for OIDC Logout
Fixes gh-8072
This commit is contained in:
parent
894a19b5ec
commit
3903ac4e5f
@ -1307,11 +1307,14 @@ public class OAuth2LoginSecurityConfig extends WebSecurityConfigurerAdapter {
|
|||||||
OidcClientInitiatedLogoutSuccessHandler oidcLogoutSuccessHandler =
|
OidcClientInitiatedLogoutSuccessHandler oidcLogoutSuccessHandler =
|
||||||
new OidcClientInitiatedLogoutSuccessHandler(this.clientRegistrationRepository);
|
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
|
// after the logout has been performed at the Provider
|
||||||
oidcLogoutSuccessHandler.setPostLogoutRedirectUri(URI.create("https://localhost:8080"));
|
oidcLogoutSuccessHandler.setPostLogoutRedirectUri("{baseUrl}");
|
||||||
|
|
||||||
return oidcLogoutSuccessHandler;
|
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.
|
||||||
----
|
----
|
||||||
|
Loading…
x
Reference in New Issue
Block a user