security
| CLASS | DESCRIPTION |
|---|---|
OAuthAccount |
ORM model for OAuth accounts ( |
UserGroup |
ORM model for the |
UserOAuth |
ORM model for the |
Classes
OAuthAccount
Bases: Base
ORM model for OAuth accounts (oauthaccount database table).
This class is a modification of
SQLAlchemyBaseOAuthAccountTable.
Original Copyright: 2021 François Voron, released under MIT licence.
| ATTRIBUTE | DESCRIPTION |
|---|---|
id |
TYPE:
|
user_id |
TYPE:
|
user |
TYPE:
|
oauth_name |
TYPE:
|
access_token |
TYPE:
|
expires_at |
TYPE:
|
refresh_token |
TYPE:
|
account_id |
TYPE:
|
account_email |
TYPE:
|
Source code in fractal_server/app/models/security.py
UserGroup
Bases: Base
ORM model for the usergroup database table.
| ATTRIBUTE | DESCRIPTION |
|---|---|
id |
ID of the group
TYPE:
|
name |
Name of the group
TYPE:
|
timestamp_created |
Time of creation
TYPE:
|
Source code in fractal_server/app/models/security.py
UserOAuth
Bases: Base
ORM model for the user_oauth database table.
This class is a modification of
SQLAlchemyBaseUserTable
from fastapi_users_db_sqlalchemy.
Original Copyright: 2021 François Voron, released under MIT licence.
Note that some class attributes (e.g is_active, is_verified and
is_superuser) are the default ones from fastapi-users - see
https://fastapi-users.github.io/fastapi-users/latest/configuration/schemas.
| ATTRIBUTE | DESCRIPTION |
|---|---|
id |
TYPE:
|
email |
TYPE:
|
hashed_password |
TYPE:
|
is_active |
If this is
TYPE:
|
is_superuser |
TYPE:
|
is_verified |
If this is
TYPE:
|
oauth_accounts |
TYPE:
|
profile_id |
Foreign key linking the user to a
TYPE:
|
project_dirs |
Absolute paths of the user's project directory. This is used (A) as
a default base folder for the |
slurm_accounts |
List of SLURM accounts that the user can select upon running a job. |
- Reference Code Index Index security Classes UserManager
- Reference Code Index Index Index Index _aux_auth Functions: _get_single_user_with_groups