auth0_provider
Classes
Module Contents
- class auth0_provider.Auth0Provider(app, oauth: authlib.integrations.flask_client.OAuth, client_id: str, client_secret: str, domain: str)[source]
Bases:
mdvtools.auth.auth_provider.AuthProvider
- _initialize_oauth()[source]
Registers the Auth0 OAuth provider and validates OpenID Connect metadata.
- logout() None [source]
Logs the user out by clearing the session and redirecting to Auth0’s logout endpoint.
- get_user(token: dict) dict | None [source]
Retrieves the user information using the provided token.
- Parameters:
token – Dictionary containing access token and user details
- Returns:
User information dictionary or None
- get_token() str | None [source]
Retrieves the token from the session.
- Returns:
Token string or None
- handle_callback() str | None [source]
Handles the Auth0 callback and retrieves the access token.
- Returns:
Access token string