Authentication for Python desktop apps

We are developing a desktop app in a Python framework (PyQt5) which involves access to remote API services.

We need a way to authenticate these access using auth0. Can someone guide me on this please?

Hi @shahbazkhan185

You have a few options:

  • Use device flow Device Authorization Flow
  • Open the web browser app from Python and do auth code + PKCE
  • Use Resource Owner Password Grant

The first treats your python app like a “smart TV”, a device with limited input/output capabilities, since it doesn’t have a web browser.

I have implemented the second, it works fine except I couldn’t get it to close the web browser when done.

The third is not recommended. We do not recommend ROPG anymore.

John

1 Like

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.