API

Flask-Auth0 is an extension for Flask that allows you to authenticate through Auth0 service.

class flask_auth0.Auth0(app=None)

The core Auth0 client object.

access_token

Get access token (user must be authenticated).

init_app(app)

Do setup required by a Flask app.

jwt_payload

Get JWT payload (user must be authenticated).

logout()

Logout user.

Request the browser to clear the current session and also clear the Auth0 session (clearing the SSO cookie).

The user won’t be log out from a third party Identity Provider.

The user is redirected to the logout callback.

requires_auth(view_func)

Decorates view functions that require a user to be logged in.