Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PoC for Keycloak 23.0.x support #952

Closed

Conversation

thomasdarimont
Copy link
Contributor

@thomasdarimont thomasdarimont commented Nov 29, 2023

WIP Add Keycloak 23

  • Keep backwards compatibility with Keycloak 18 / RH-SSO (I think we can drop that for this release)
  • add generated master realm for 23.0.0
  • Adapted UserProfile handling to changes in Keycloak 23
  • Adapted Groups handling due to changes in Keycloak 23

Needed to Adapt the ImportGroupsIT due to changes in Keycloaks representations,
instead of empty lists or maps, Keycloak now returns null.

This is WIP other behaviour changed as well.
Currently 391 of 442 tests passes (50 failed tests)

image

Fixes #948

PR Readiness Checklist:

Complete these before marking the PR as ready to review:

  • the CHANGELOG.md release notes have been updated to reflect any significant (and particularly user-facing) changes introduced by this PR

Signed-off-by: Thomas Darimont <[email protected]>
- Keep backwards compatibility with Keycloak 18 / RH-SSO
- add generated master realm for 23.0.0
- Adapted UserProfile handling to changes in Keycloak 23
- Adapted Groups handling due to changes in Keycloak 23

Needed to Adapt the ImportGroupsIT due to changes in serialization, instead of empty lists or maps, Keycloak now returns null.

Fixes adorsys#948
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 2 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@thomasdarimont
Copy link
Contributor Author

Note that we are also affected by this regression in Keyclaok 23.0.0
"Meaning of briefRepresentation query parameter is inverted in GroupResource.getSubGroups"
keycloak/keycloak#25096

@@ -239,4 +238,12 @@ private GroupResource getResourceById(String realmName, String groupId) {
.groups()
.group(groupId);
}

public List<GroupRepresentation> getSubGroups(String realmName, String parentGroupId) {
// TODO make max size configurable
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use subGroupCount from parent group as max

@thomasdarimont
Copy link
Contributor Author

We are also affected by this:
"RealmAdminResource.getGroupByPathGroup does not work with space in path parameter"
keycloak/keycloak#25111

@thomasdarimont thomasdarimont mentioned this pull request Dec 7, 2023
1 task
@thomasdarimont
Copy link
Contributor Author

Closing in favor of the more complete solution: #958

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add support for Keycloak 23.0.0
1 participant