Add logout success page to default client sample

Sample client (located in 'samples/messages-client' directory) is configured with a custom logout success page where
the end-user is redirected to upon successful logout action.

Fixes gh-1142
This commit is contained in:
Dmitriy Dubson
2023-04-17 15:23:09 -04:00
committed by Joe Grandja
parent b6ff06d6fe
commit 813921ed0b
6 changed files with 39 additions and 6 deletions

View File

@@ -54,6 +54,7 @@ import org.springframework.security.web.authentication.LoginUrlAuthenticationEnt
/**
* @author Joe Grandja
* @author Dmitriy Dubson
* @since 0.0.1
*/
@Configuration(proxyBeanMethods = false)
@@ -88,7 +89,7 @@ public class AuthorizationServerConfig {
.authorizationGrantType(AuthorizationGrantType.CLIENT_CREDENTIALS)
.redirectUri("http://127.0.0.1:8080/login/oauth2/code/messaging-client-oidc")
.redirectUri("http://127.0.0.1:8080/authorized")
.postLogoutRedirectUri("http://127.0.0.1:8080/index")
.postLogoutRedirectUri("http://127.0.0.1:8080/logged-out")
.scope(OidcScopes.OPENID)
.scope(OidcScopes.PROFILE)
.scope("message.read")