OpenId - unable to set custom PostLogoutRedirectUri

Hi,

I have configured oauth2 for a third party provider called CyberArk. Login functionality is working as expected but, after logout the below URL is getting generated and the post_logout_redirect_uri is getting set automatically to localhost/local IP of the machine. Is there any way to change or customise the post_logout_redirect_uri parameter?

https://domain/OAuth2/EndSessionV2/projectName?id_token_hint=someToken&post_logout_redirect_uri=http://localhost:8080/contextName

Have configured the following things in the application:

spring.security.oauth2.client.registration.cyber.client-id=client-id
spring.security.oauth2.client.registration.cyber.client-secret=secret
spring.security.oauth2.client.registration.cyber.scope=openid, profile, email
spring.security.oauth2.client.provider.cyber.issuer-uri=https://domain/projectName/
spring.security.oauth2.client.provider.cyber.token-uri=https://domain/OAuth2/Token/projectName
spring.security.oauth2.client.provider.cyber.authorization-uri=https://domain/OAuth2/Authorize/projectName
spring.security.oauth2.resourceserver.jwt.issuer-uri=https://domain/projectName/
spring.security.oauth2.client.registration.cyber.redirect-uri=https://myJmixApplicationDomain/applicationContext/login/oauth2/code/cyber
spring.security.oauth2.client.provider.cyber.authorization-grant-type=authorization_code
spring.security.oauth2.client.provider.cyber.user-name-attribute=unique_name
spring.security.oauth2.client.provider.cyber.jwk-set-uri=https://domain/OAuth2/Keys/projectName

Hi,

Which Jmix version do you use?

I guess the problem is that the URL is fixed. You may find it in the OidcAutoConfiguration.java:

successHandler.setPostLogoutRedirectUri("{baseUrl}");

I’ve created an issue for this.

Hi,

Thanks for the help. But, is there any workaround or alternate way to achieve this until the raised issue gets resolved?