Skip to content

Bug: Management Client's Get User endpoint does not match Kinde's actual API #89

@reveritas

Description

@reveritas

Prerequisites

Describe the issue

The Management Client (https://github.com/kinde-oss/kinde-python-sdk/blob/main/kinde_sdk/management/management_client.py) uses dynamic endpoint generation from an API_ENDPOINTS object. However, the path listed for the users.get endpoint in that object is not the actual path that the Kinde API uses. Calling client.get_user(id='...') understandably throws a 404 error ("The requested API route does not exist").

Management Client:

Image

Kinde API Docs:

Image

In other words, the path in the Management Client should be /api/v1/user, the same one as the users.create endpoint.

I would gladly submit a PR for this myself, but in my opinion the best way to fix this is to auto-generate the endpoints from the actual Kinde API docs instead of a manually maintained endpoints object in the code - and I'm sure the Kinde team is better suited for this than me. In the meantime, a workaround is of course using the SDK only to get the access token and calling the Kinde API directly via HTTP.

Library URL

https://github.com/kinde-oss/kinde-python-sdk

Library version

2.0.8

Operating system(s)

Ubuntu

Operating system version(s)

20.04

Further environment details

No response

Reproducible test case URL

No response

Additional information

No response

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions