mdvtools.auth.auth_provider#
Classes#
Helper class that provides a standard way to create an ABC using |
Module Contents#
- class mdvtools.auth.auth_provider.AuthProvider[source]#
Bases:
abc.ABC
Helper class that provides a standard way to create an ABC using inheritance.
- abstractmethod login() flask.typing.ResponseReturnValue [source]#
Redirects to the login page of the provider.
- abstractmethod get_user(token: dict | None = None) dict | None [source]#
Fetches the user profile using the provided token.
- abstractmethod handle_callback() str | None [source]#
Handles the callback and exchanges the code for a token (implemented by the provider).
- Returns:
Access token if successfully retrieved, else None