Functions
Authenticate a user. Return the DB user if ok, throw an exception if not ok
Parameters:
Name | Type | Default value | Description |
---|---|---|---|
id | str | The id of the user to authenticate `` |
Return type:
User |
Use link the the token to check access for a unique code generated. return the object associated with the code
Parameters:
Name | Type | Default value | Description |
---|---|---|---|
unique_code | str |
Return type:
User |
Parameters:
Name | Type | Default value | Description |
---|---|---|---|
token | str | Depends(OAuth2UserTokenBearerCookie) |
Return type:
User |
Parameters:
Name | Type | Default value | Description |
---|---|---|---|
id | str |
Return type:
str |
Parameters:
Name | Type | Default value | Description |
---|---|---|---|
user_login_info | UserLoginInfo |
Return type:
str |
Check user space exists in the lab and if yes, it updates the user info
Parameters:
Name | Type | Default value | Description |
---|---|---|---|
user_space | UserSpace |
Return type:
User |
Parameters:
Name | Type | Default value | Description |
---|---|---|---|
user | User | ||
response | Response |
Return type:
Response |
Parameters:
Name | Type | Default value | Description |
---|---|---|---|
credentials | UserCredentialsDTO |
Return type:
Response |
Parameters:
Name | Type | Default value | Description |
---|---|---|---|
credentials | UserCredentials2Fa |
Return type:
Response |
Return type:
JSONResponse |
Parameters:
Name | Type | Default value | Description |
---|---|---|---|
token | str | ||
expireInSeconds | int | ||
response | Response |