File tree Expand file tree Collapse file tree 2 files changed +4
-12
lines changed
misc/keycloak-quickstarts-test-helper
src/main/java/org/keycloak/quickstart/builders Expand file tree Collapse file tree 2 files changed +4
-12
lines changed Original file line number Diff line number Diff line change 4242 </dependency >
4343 <dependency >
4444 <groupId >org.keycloak</groupId >
45- <artifactId >keycloak-server-spi</artifactId >
46- <version >${version.keycloak} </version >
47- </dependency >
48- <dependency >
49- <groupId >org.keycloak</groupId >
50- <artifactId >keycloak-server-spi-private</artifactId >
45+ <artifactId >keycloak-services</artifactId >
5146 <version >${version.keycloak} </version >
5247 </dependency >
5348 </dependencies >
Original file line number Diff line number Diff line change 1717
1818package org .keycloak .quickstart .test .builders ;
1919
20+ import org .keycloak .protocol .oidc .OIDCAdvancedConfigWrapper ;
2021import org .keycloak .representations .idm .ClientRepresentation ;
2122
2223import java .util .Collections ;
23- import java .util .HashMap ;
2424
2525/**
2626 * @author <a href="mailto:[email protected] ">Bruno Oliveira</a> @@ -89,11 +89,8 @@ private ClientRepresentation defaultSettings() {
8989
9090 if (rep .getRedirectUris () == null && rep .getRootUrl () != null )
9191 rep .setRedirectUris (Collections .singletonList (rep .getRootUrl ().concat ("/*" )));
92- if (rep .getAttributes () == null ) {
93- rep .setAttributes (new HashMap <>());
94- }
95- if (rep .getAttributes ().get ("post.logout.redirect.uris" ) == null ) {
96- rep .getAttributes ().put ("post.logout.redirect.uris" , "+" );
92+ if (OIDCAdvancedConfigWrapper .fromClientRepresentation (rep ).getPostLogoutRedirectUris () == null ) {
93+ OIDCAdvancedConfigWrapper .fromClientRepresentation (rep ).setPostLogoutRedirectUris (Collections .singletonList ("+" ));
9794 }
9895 return rep ;
9996 }
You can’t perform that action at this time.
0 commit comments