-
Notifications
You must be signed in to change notification settings - Fork 24
Description
Prerequisites
- I have searched the repository’s issues and Kinde community to ensure my issue isn’t a duplicate
- I have checked the latest version of the library to replicate my issue
- I have read the contributing guidelines
- I agree to the terms within the code of conduct
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:
Kinde API Docs:
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