Skip to content

Commit

Permalink
JNG-5632 Newer version of keycloak gives 302 (Redirect). For availabi…
Browse files Browse the repository at this point in the history
…lity check it's acceptable. (#226)
  • Loading branch information
robertcsakany authored Dec 17, 2024
1 parent c3ca332 commit 5a39e7f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ public Map<String, Object> getOpenIdConfiguration(final EClass actorType) {
public void ping() {
try {
final Response response = WebClient.create(serverUrl, providers).path("/").get();
checkState(response.getStatus() == 200, "Keycloak is not ready");
checkState(response.getStatus() == 200 || response.getStatus() == 302, "Keycloak is not ready");
} catch (RuntimeException ex) {
throw new IllegalStateException("Keycloak is not available", ex);
}
Expand Down

0 comments on commit 5a39e7f

Please sign in to comment.