python-keycloak icon indicating copy to clipboard operation
python-keycloak copied to clipboard

Mismatch in GroupRepresentation and implementation

Open siddiqskm opened this issue 7 years ago • 2 comments

In reference to the code per permalink: https://github.com/marcospereirampj/python-keycloak/blob/99f69dd37efc59fa9bc471cb9b2ee1137767dc51/keycloak/keycloak_admin.py#L515 - I see the link referenced to in the docstring is invalid and not reachable now. Hence, docstring's need to be updated per support of the API's.

Now, In the keycloak documentation for group representation: https://www.keycloak.org/docs-api/5.0/rest-api/index.html#_grouprepresentation I see both Name and Path are optional but the implementation mandates both name and path in create_group. Is this expected?

siddiqskm avatar Aug 12 '19 17:08 siddiqskm

Hi @siddiqskm.

No. It is a mistake. Just like the code snippet (I think): if name is None and path is not None: path="/" + name

I'll to fix. Thanks!

marcospereirampj avatar Aug 14 '19 21:08 marcospereirampj

Release 0.17.5.

marcospereirampj avatar Aug 30 '19 00:08 marcospereirampj