Skip to content

Commit

Permalink
feat: set logout success URL
Browse files Browse the repository at this point in the history
  • Loading branch information
f-necas committed Jan 23, 2024
1 parent 3b93d0d commit 776faad
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
package org.georchestra.gateway.security.oauth2;

import java.lang.reflect.Field;
import java.net.URI;
import java.nio.charset.StandardCharsets;
import java.text.ParseException;
import java.util.Arrays;
Expand Down Expand Up @@ -102,7 +103,8 @@ ServerLogoutSuccessHandler oidcLogoutSuccessHandler(

OidcClientInitiatedServerLogoutSuccessHandler oidcLogoutSuccessHandler = new OidcClientInitiatedServerLogoutSuccessHandler(
clientRegistrationRepository);
oidcLogoutSuccessHandler.setPostLogoutRedirectUri("{baseUrl}" + georchestraLogoutUrl);
oidcLogoutSuccessHandler.setPostLogoutRedirectUri("{baseUrl}/login?logout");
oidcLogoutSuccessHandler.setLogoutSuccessUrl(URI.create("{baseUrl}" + georchestraLogoutUrl));
return oidcLogoutSuccessHandler;
}

Expand Down

0 comments on commit 776faad

Please sign in to comment.