yasuki_web.auth#
Classes
|
|
|
|
|
|
|
|
|
Functions
|
Approve a pending account so it can use the product surfaces. |
|
Ban an account: revoke its sessions and tombstone the identity. |
|
Define a new role (a short lowercase slug) so it can be assigned. |
|
The defined roles, for the dashboard's role picker. |
|
Every account, for the admin dashboard. |
|
Set an account's role to one of the defined roles (422 if it is not defined). |
|
Lift a ban so the identity may sign in again. |
|
|
|
Clear the avatar, falling the display back to the name's initials. |
|
The authenticated user, or 401 — the gate for login-required routes. |
|
The user behind the session cookie, or None — the additive dependency for public routes. |
|
Erase the signed-in user's account (decks and sessions included) and clear the cookie. |
|
Mint a session without Google, for local development. |
Whether the dev sign-in shortcut is active: opt-in via env and never in production. |
|
|
|
|
|
|
|
|
The authenticated user if an admin, else 403 — the gate for the admin dashboard. |
|
The user if their account is ready for the product (named and approved), else 403. |
|
Set the signed-in user's avatar to a crop of a chosen card. |
|
Change the signed-in user's display name. |
|
The user behind the session cookie on a WebSocket handshake, or None. |