fschmtt / keycloak-rest-api-client-php

PHP client to interact with Keycloak's Admin REST API.
MIT License
24 stars 18 forks source link

Filtering via Criteria seems to have no effect on Groups::all function #132

Open p-weisk opened 2 hours ago

p-weisk commented 2 hours ago

I try and get a specific group by path by using the $criteria parameter on Groups::all to check if a group exists in this path before creating one:

$keycloakGroups = $this->keycloak->groups()->all($this->realm, new Criteria(['path' => '/example-path'])); I expect the result to be empty since no group with this path exists, but it returns all groups instead.

It doesn't work either if I use name instead of path as the criteria.

Is this user error on my part or might this be a bug? I'm using Keycloak 25 and the latest 0.26.1 release of this library. Thanks for the support!

fschmtt commented 2 hours ago

Hi 👋 Could you do me a favor and try 0.25 of the library to verify?

I made quite a big refactoring in 0.26 (Symfony Serializers) and I hope this didn't break anything 😰

I don't believe this should be an issue, though, because I only use it for serializing representations.

Thanks for your support 🙂