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

Get management token using device code flow

Open rdettai opened this issue 2 years ago • 0 comments

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

rdettai avatar Feb 06 '24 09:02 rdettai