Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to configure postLogoutRedirectUri for OidcClientInitiatedLogoutSuccessHandler #2529

Closed
gorbunkov opened this issue Nov 28, 2023 · 1 comment
Assignees
Milestone

Comments

@gorbunkov
Copy link
Contributor

gorbunkov commented Nov 28, 2023

In the OidcAutoConfiguration the following code creates the OidcClientInitiatedLogoutSuccessHandler with a fixed postLogoutRedirectUri:

        protected OidcClientInitiatedLogoutSuccessHandler oidcLogoutSuccessHandler(ClientRegistrationRepository clientRegistrationRepository) {
            OidcClientInitiatedLogoutSuccessHandler successHandler = new OidcClientInitiatedLogoutSuccessHandler(clientRegistrationRepository);
            successHandler.setPostLogoutRedirectUri("{baseUrl}");
            return successHandler;
        }

There must be a way to configure this URI.

See forum.

@gorbunkov gorbunkov added size: S in: oidc triage Issue is waiting for triage candidate Possible candidate for future releases and removed triage Issue is waiting for triage labels Nov 28, 2023
@gorbunkov gorbunkov removed the candidate Possible candidate for future releases label Dec 28, 2023
@gorbunkov gorbunkov self-assigned this Dec 28, 2023
gorbunkov added a commit that referenced this issue Dec 28, 2023
…outSuccessHandler #2529

jmix.oidc.post-logout-redirect-uri application property was introduced
@gorbunkov
Copy link
Contributor Author

gorbunkov commented Dec 28, 2023

The post logout redirect URI template may be configured in application using the application property:

jmix.oidc.post-logout-redirect-uri=...

The default value is {baseUrl}

@gorbunkov gorbunkov added this to the 2.2.0 milestone Feb 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

No branches or pull requests

1 participant