code-specialist / fastapi-keycloak

Keycloak integration for Python FastAPI
https://fastapi-keycloak.code-specialist.com/
Apache License 2.0
192 stars 49 forks source link

Add `get_group_members` support #103

Closed alexbarcelo closed 7 months ago

alexbarcelo commented 8 months ago

Keycloak supports a "get group members" mechanism.

Supporting it is straightforward, only thing to be aware of is the access attribute: my tests showed it as non-populated (missing from the response). Setting it as Optional is a closer match to the UserRepresentation and should not break anything.