Auth0 Home Blog Docs

Kivy python framework - any examples?




I am using the Python based Kivy framework to develop mobile applications.

I’m trying to use Auth0 to run OIDC for me. I want Kivy to use Auth0 to get tokens that it can present to my API backend.

I’m using Python 3.5 and whenever I use the Auth0 library I get an error about SSL timing out.

The following code times out:

from auth0.v3.authentication import Social
social = Social('')
social.login(client_id='secret', access_token='secret', connection='google')

with the error:

requests.exceptions.ConnectionError: HTTPSConnectionPool(host=‘https’, port=443): Max retries exceeded with url: //my-tenant/oauth/access_token Caused by NewConnectionError(’<urllib3.connection.VerifiedHTTPSConnection object at 0x7f43b39f3cc0>: Failed to establish a new connection: [Errno 110] Connection timed out’,))

I have no idea how to spawn the browser to display the login screen to the user, or how to get the redirect back from Auth0.

Are there any examples of how to do this?