Nerzal / gocloak

golang keycloak client
Apache License 2.0
1.01k stars 275 forks source link

Implement method to get group's child groups using Keycloak 23 API #459

Closed tduong2049 closed 6 days ago

tduong2049 commented 7 months ago

This doesn't resolve the issue https://github.com/Nerzal/gocloak/issues/456 with GetGroups() and GetGroup() not including the child/sub groups in the results - because of changes in Keycloak 23's API:

Rather, this is a separate method to get a group's child groups using the new GET /admin/realms/{realm}/groups/{id}/children endpoint in Keycloak 23's API - as mentioned in https://github.com/Nerzal/gocloak/issues/456#issuecomment-1874185851

Method was tested locally with quay.io/keycloak/keycloak:23.0.4 image.

As mentioned in https://github.com/Nerzal/gocloak/issues/456#issuecomment-1908854180, this method could be expanded with a params GetChildGroupsParams parameter.

Nerzal commented 7 months ago

I guess we need to update the pipeline in order to test Keycloak 23+ Features.

tduong2049 commented 6 days ago

Closing this PR to support https://github.com/Nerzal/gocloak/pull/484