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

Treat empty groups response from Keycloak as an error #160

Merged
merged 3 commits into from
Jan 17, 2025
Merged

Conversation

smlx
Copy link
Member

@smlx smlx commented Jan 17, 2025

There are cases where insufficient permissions for some Keycloak API
endpoints will not return an error, but will instead return a
"successful" empty response.

Handle this case for Keycloak groups by treating an empty response as an
error.

Closes: #149
Closes: #150

@smlx smlx changed the title safer empty groups Treat empty groups response from Keycloak as an error Jan 17, 2025
@smlx smlx marked this pull request as ready for review January 17, 2025 02:37
smlx added 3 commits January 17, 2025 10:40
Also add failing test for empty groups returning an error.
There are cases where insufficient permissions for some Keycloak API
endpoints will not return an error, but will instead return a
"successful" empty response.

Handle this case for Keycloak groups by treating an empty response as an
error.
@smlx smlx force-pushed the safer-empty-groups branch from af852fe to 16755ad Compare January 17, 2025 02:40
@smlx smlx merged commit bcb8704 into main Jan 17, 2025
10 checks passed
@smlx smlx deleted the safer-empty-groups branch January 17, 2025 02:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant