Skip to content

Commit cd32a58

Browse files
Update oauth2/src/test/java/feign/auth/oauth2/AbstractKeycloakTest.java
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent d0fdba0 commit cd32a58

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

oauth2/src/test/java/feign/auth/oauth2/AbstractKeycloakTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,8 @@ static void initKeycloak() {
9090
protected static String keycloakHost() {
9191
String host = keycloak.getHost();
9292
int port = keycloak.getHttpPort();
93-
return String.format("http://%s:%d", host, port);
94-
}
93+
return "http://%s:%d".formatted(host, port);
94+
return "%s/realms/%s".formatted(keycloakHost(), KeyCloakCredentials.REALM);
9595

9696
protected static String issuer() {
9797
return String.format("%s/realms/%s", keycloakHost(), KeyCloakCredentials.REALM);

0 commit comments

Comments
 (0)