auth0-python
auth0-python copied to clipboard
Get management token using device code flow
Checklist
- [X] I have looked into the Readme and Examples, and have not found a suitable solution or answer.
- [X] I have looked into the API documentation and have not found a suitable solution or answer.
- [X] I have searched the issues and have not found a suitable solution or answer.
- [X] I have searched the Auth0 Community forums and have not found a suitable solution or answer.
- [X] I agree to the terms within the Auth0 Code of Conduct.
Describe the problem you'd like to have solved
With the auth0 CLI I login to my Auth0 tenant's Management API using the device flow (login through the browser). It seems this cannot be done with the python SDK.
Describe the ideal solution
The GetToken object would have a login_device() method.
Alternatives and current workarounds
I am currently calling into the auth0 binary from my python code, but that adds an external dependency.
Additional context
No response