current_user
Definition of /auth/current-user/
endpoints
get_current_user(group_ids_names=False, user=Depends(current_active_user), db=Depends(get_async_db))
async
¶
Return current user
Source code in fractal_server/app/routes/auth/current_user.py
33 34 35 36 37 38 39 40 41 42 43 44 45 46 |
|
get_current_user_allowed_viewer_paths(current_user=Depends(current_active_user), db=Depends(get_async_db))
async
¶
Returns the allowed viewer paths for current user, according to the selected FRACTAL_VIEWER_AUTHORIZATION_SCHEME
Source code in fractal_server/app/routes/auth/current_user.py
115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 |
|
patch_current_user(user_update, current_user=Depends(current_active_user), user_manager=Depends(get_user_manager), db=Depends(get_async_db))
async
¶
Note: a user cannot patch their own password (as enforced within the
UserUpdateStrict
schema).
Source code in fractal_server/app/routes/auth/current_user.py
49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 |
|