Skip to content

Commit

Permalink
changes for keycloak 26
Browse files Browse the repository at this point in the history
  • Loading branch information
bohmber committed Nov 5, 2024
1 parent 0031aa1 commit bd00f35
Show file tree
Hide file tree
Showing 19 changed files with 51 additions and 33 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1608,7 +1608,13 @@ void shouldAddAuthzPoliciesForRealmManagement() throws IOException {
assertThat(client.getAuthorizationServicesEnabled(), is(true));
assertThat(client.isFrontchannelLogout(), is(false));
assertThat(client.getProtocol(), is("openid-connect"));
assertThat(client.getAttributes(), anEmptyMap());
if (client.getAttributes().size() == 1) {
// https://github.com/keycloak/keycloak/commit/24aa6e143dee0cc50eb90eaf42c72cc7cf839cee
// realm_client attribute
assertThat(client.getAttributes(), hasEntry(equalTo("realm_client"), equalTo("true")));
} else {
assertThat(client.getAttributes(), anEmptyMap());
}
assertThat(client.getAuthenticationFlowBindingOverrides(), anEmptyMap());
assertThat(client.isFullScopeAllowed(), is(false));
assertThat(client.getNodeReRegistrationTimeout(), is(0));
Expand Down Expand Up @@ -1750,7 +1756,13 @@ void shouldUpdateAuthzPoliciesForRealmManagement() throws IOException {
assertThat(client.getAuthorizationServicesEnabled(), is(true));
assertThat(client.isFrontchannelLogout(), is(false));
assertThat(client.getProtocol(), is("openid-connect"));
assertThat(client.getAttributes(), anEmptyMap());
if (client.getAttributes().size() == 1) {
// https://github.com/keycloak/keycloak/commit/24aa6e143dee0cc50eb90eaf42c72cc7cf839cee
// realm_client attribute
assertThat(client.getAttributes(), hasEntry(equalTo("realm_client"), equalTo("true")));
} else {
assertThat(client.getAttributes(), anEmptyMap());
}
assertThat(client.getAuthenticationFlowBindingOverrides(), anEmptyMap());
assertThat(client.isFullScopeAllowed(), is(false));
assertThat(client.getNodeReRegistrationTimeout(), is(0));
Expand Down Expand Up @@ -1876,7 +1888,13 @@ void shouldRemoveClientAndAuthzPoliciesForRealmManagement() throws IOException {
assertThat(client.getAuthorizationServicesEnabled(), is(true));
assertThat(client.isFrontchannelLogout(), is(false));
assertThat(client.getProtocol(), is("openid-connect"));
assertThat(client.getAttributes(), anEmptyMap());
if (client.getAttributes().size() == 1) {
// https://github.com/keycloak/keycloak/commit/24aa6e143dee0cc50eb90eaf42c72cc7cf839cee
// realm_client attribute
assertThat(client.getAttributes(), hasEntry(equalTo("realm_client"), equalTo("true")));
} else {
assertThat(client.getAttributes(), anEmptyMap());
}
assertThat(client.getAuthenticationFlowBindingOverrides(), anEmptyMap());
assertThat(client.isFullScopeAllowed(), is(false));
assertThat(client.getNodeReRegistrationTimeout(), is(0));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"authenticator": "docker-http-basic-authenticator",
"requirement": "DISABLED",
"priority": 0,
"userSetupAllowed": true,
"userSetupAllowed": false,
"autheticatorFlow": false,
"authenticatorFlow": false
}
Expand All @@ -30,7 +30,7 @@
"authenticator": "docker-http-basic-authenticator",
"requirement": "DISABLED",
"priority": 0,
"userSetupAllowed": true,
"userSetupAllowed": false,
"autheticatorFlow": false,
"authenticatorFlow": false
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"authenticator": "docker-http-basic-authenticator",
"requirement": "DISABLED",
"priority": 0,
"userSetupAllowed": true,
"userSetupAllowed": false,
"autheticatorFlow": false,
"authenticatorFlow": false
}
Expand All @@ -30,7 +30,7 @@
"authenticator": "docker-http-basic-authenticator",
"requirement": "DISABLED",
"priority": 0,
"userSetupAllowed": true,
"userSetupAllowed": false,
"autheticatorFlow": false,
"authenticatorFlow": false
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"authenticator": "docker-http-basic-authenticator",
"requirement": "DISABLED",
"priority": 0,
"userSetupAllowed": true,
"userSetupAllowed": false,
"autheticatorFlow": false,
"authenticatorFlow": false
}
Expand All @@ -30,7 +30,7 @@
"authenticator": "docker-http-basic-authenticator",
"requirement": "DISABLED",
"priority": 0,
"userSetupAllowed": true,
"userSetupAllowed": false,
"autheticatorFlow": false,
"authenticatorFlow": false
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"authenticator": "docker-http-basic-authenticator",
"requirement": "DISABLED",
"priority": 0,
"userSetupAllowed": true,
"userSetupAllowed": false,
"autheticatorFlow": false,
"authenticatorFlow": false
}
Expand All @@ -30,7 +30,7 @@
"authenticator": "docker-http-basic-authenticator",
"requirement": "DISABLED",
"priority": 0,
"userSetupAllowed": true,
"userSetupAllowed": false,
"autheticatorFlow": false,
"authenticatorFlow": false
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"authenticator": "docker-http-basic-authenticator",
"requirement": "DISABLED",
"priority": 0,
"userSetupAllowed": true,
"userSetupAllowed": false,
"autheticatorFlow": false,
"authenticatorFlow": false
}
Expand All @@ -30,7 +30,7 @@
"authenticator": "docker-http-basic-authenticator",
"requirement": "DISABLED",
"priority": 0,
"userSetupAllowed": true,
"userSetupAllowed": false,
"autheticatorFlow": false,
"authenticatorFlow": false
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"authenticator": "docker-http-basic-authenticator",
"requirement": "DISABLED",
"priority": 0,
"userSetupAllowed": true,
"userSetupAllowed": false,
"autheticatorFlow": false,
"authenticatorFlow": false
}
Expand All @@ -30,7 +30,7 @@
"authenticator": "docker-http-basic-authenticator",
"requirement": "DISABLED",
"priority": 0,
"userSetupAllowed": true,
"userSetupAllowed": false,
"autheticatorFlow": false,
"authenticatorFlow": false
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"authenticator": "docker-http-basic-authenticator",
"requirement": "DISABLED",
"priority": 0,
"userSetupAllowed": true,
"userSetupAllowed": false,
"autheticatorFlow": false,
"authenticatorFlow": false
}
Expand All @@ -36,7 +36,7 @@
"authenticator": "docker-http-basic-authenticator",
"requirement": "DISABLED",
"priority": 0,
"userSetupAllowed": true,
"userSetupAllowed": false,
"autheticatorFlow": false,
"authenticatorFlow": false
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"authenticator": "docker-http-basic-authenticator",
"requirement": "DISABLED",
"priority": 0,
"userSetupAllowed": true,
"userSetupAllowed": false,
"autheticatorFlow": false,
"authenticatorFlow": false
}
Expand All @@ -36,7 +36,7 @@
"authenticator": "docker-http-basic-authenticator",
"requirement": "DISABLED",
"priority": 0,
"userSetupAllowed": true,
"userSetupAllowed": false,
"autheticatorFlow": false,
"authenticatorFlow": false
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"authenticator": "docker-http-basic-authenticator",
"requirement": "DISABLED",
"priority": 0,
"userSetupAllowed": true,
"userSetupAllowed": false,
"autheticatorFlow": false,
"authenticatorFlow": false
}
Expand All @@ -36,7 +36,7 @@
"authenticator": "docker-http-basic-authenticator",
"requirement": "DISABLED",
"priority": 0,
"userSetupAllowed": true,
"userSetupAllowed": false,
"autheticatorFlow": false,
"authenticatorFlow": false
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"authenticator": "docker-http-basic-authenticator",
"requirement": "DISABLED",
"priority": 0,
"userSetupAllowed": true,
"userSetupAllowed": false,
"autheticatorFlow": false,
"authenticatorFlow": false
}
Expand All @@ -36,7 +36,7 @@
"authenticator": "docker-http-basic-authenticator",
"requirement": "DISABLED",
"priority": 0,
"userSetupAllowed": true,
"userSetupAllowed": false,
"autheticatorFlow": false,
"authenticatorFlow": false
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"authenticator": "docker-http-basic-authenticator",
"requirement": "DISABLED",
"priority": 0,
"userSetupAllowed": true,
"userSetupAllowed": false,
"autheticatorFlow": false,
"authenticatorFlow": false
}
Expand All @@ -36,7 +36,7 @@
"authenticator": "docker-http-basic-authenticator",
"requirement": "DISABLED",
"priority": 0,
"userSetupAllowed": true,
"userSetupAllowed": false,
"autheticatorFlow": false,
"authenticatorFlow": false
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"authenticator": "docker-http-basic-authenticator",
"requirement": "DISABLED",
"priority": 0,
"userSetupAllowed": true,
"userSetupAllowed": false,
"autheticatorFlow": false,
"authenticatorFlow": false
}
Expand All @@ -36,7 +36,7 @@
"authenticator": "docker-http-basic-authenticator",
"requirement": "DISABLED",
"priority": 0,
"userSetupAllowed": true,
"userSetupAllowed": false,
"autheticatorFlow": false,
"authenticatorFlow": false
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"authenticator": "docker-http-basic-authenticator",
"requirement": "DISABLED",
"priority": 0,
"userSetupAllowed": true,
"userSetupAllowed": false,
"autheticatorFlow": false,
"authenticatorFlow": false
}
Expand All @@ -36,7 +36,7 @@
"authenticator": "docker-http-basic-authenticator",
"requirement": "DISABLED",
"priority": 0,
"userSetupAllowed": true,
"userSetupAllowed": false,
"autheticatorFlow": false,
"authenticatorFlow": false
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"authenticator": "docker-http-basic-authenticator",
"requirement": "DISABLED",
"priority": 0,
"userSetupAllowed": true,
"userSetupAllowed": false,
"autheticatorFlow": false,
"authenticatorFlow": false
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"authenticator": "docker-http-basic-authenticator",
"requirement": "DISABLED",
"priority": 0,
"userSetupAllowed": true,
"userSetupAllowed": false,
"autheticatorFlow": false,
"authenticatorFlow": false
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"authenticator": "docker-http-basic-authenticator",
"requirement": "DISABLED",
"priority": 0,
"userSetupAllowed": true,
"userSetupAllowed": false,
"autheticatorFlow": false,
"authenticatorFlow": false
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"authenticator": "docker-http-basic-authenticator",
"requirement": "DISABLED",
"priority": 0,
"userSetupAllowed": true,
"userSetupAllowed": false,
"autheticatorFlow": false,
"authenticatorFlow": false
}
Expand Down

0 comments on commit bd00f35

Please sign in to comment.