security
OAuthAccount
¶
Bases: SQLModel
ORM model for OAuth accounts (oauthaccount database table).
This class is based on fastapi_users_db_sqlmodel::SQLModelBaseOAuthAccount. 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
19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 | |
UserGroup
¶
Bases: SQLModel
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
140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 | |
UserOAuth
¶
Bases: SQLModel
ORM model for the user_oauth database table.
This class is a modification of
SQLModelBaseUserDB
from fastapi_users_db_sqlmodel.
Original Copyright: 2022 François Voron, released under MIT licence.
Note that several class attributes are
the default ones from fastapi-users
.
| 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
TYPE:
|
slurm_accounts |
List of SLURM accounts that the user can select upon running a job.
TYPE:
|
Source code in fractal_server/app/models/security.py
52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 | |