thunderbird_accounts.authentication.views

Functions

fxa_callback(request)

The user returns from the OAuth sequence to us here, where we will check the state retrieve the token, and give them profile information.

fxa_logout(request)

Logout of fxa

fxa_start(request, login_code[, redirect_to])

Initiate the Mozilla Account OAuth dance

fxa_webhook(request, *args, **kwargs)

Main for webhooks regarding fxa

login_view(request)

This view is called on any @login_required decorator while the user isn't logged in.

thunderbird_accounts.authentication.views.login_view(request: AccountsHttpRequest)[source]

This view is called on any @login_required decorator while the user isn’t logged in. We generate a login url for the current instance, and either pass the ‘next’ query param to redirect_to, or default them to redirect_home.

thunderbird_accounts.authentication.views.fxa_start(request: AccountsHttpRequest, login_code: str, redirect_to: str | None = None)[source]

Initiate the Mozilla Account OAuth dance

thunderbird_accounts.authentication.views.fxa_logout(request: AccountsHttpRequest)[source]

Logout of fxa

thunderbird_accounts.authentication.views.fxa_callback(request: AccountsHttpRequest)[source]

The user returns from the OAuth sequence to us here, where we will check the state retrieve the token, and give them profile information.

thunderbird_accounts.authentication.views.fxa_webhook(request, *args, **kwargs)

Main for webhooks regarding fxa