mdvtools.auth.shibboleth_provider#

Attributes#

Classes#

ShibbolethProvider

Helper class that provides a standard way to create an ABC using

Module Contents#

mdvtools.auth.shibboleth_provider.logger[source]#
class mdvtools.auth.shibboleth_provider.ShibbolethProvider(app)[source]#

Bases: mdvtools.auth.auth_provider.AuthProvider

Helper class that provides a standard way to create an ABC using inheritance.

app[source]#
logout_url[source]#
login_url[source]#
login() flask.typing.ResponseReturnValue[source]#

Redirects to the login page of the provider.

logout()[source]#

Logs out the user.

get_user(token: dict | None = None) dict | None[source]#

Fetches the user profile using the provided token.

get_token()[source]#

Gets the current user’s access token.

handle_callback()[source]#

Handles the callback and exchanges the code for a token (implemented by the provider).

Returns:

Access token if successfully retrieved, else None

validate_user()[source]#

Validate user using Shibboleth.

sync_users_to_db() None[source]#

Shibboleth doesn’t have a centralized user store to sync from like Auth0. Users are provisioned individually upon login.