k8s_client.views.users.auth¶
Module Contents¶
Functions¶
Login an user |
- k8s_client.views.users.auth.login_user()¶
Login an user
Parameters¶
- Request Bodyjson
- JSON containing data for the data:
"username": string,Name of the owner user to login
"password": string,Password of the user
Returns¶
[code: 404]Error message if:usernameis NOT inside the DBpasswordis NOT valid for the username
[code: 200]dictif
INPUTis valid, with keys:"email"User email (str)
"first_name"User first name (str)
"groups"User groups list (list [dict [
"id"(str),"name"(str) ] ])"id"User id (int)
"last_name"User last name (str)
"roles"User roles list (list [dict [
"id"(str),"name"(str) ] ])"tokens"User tokens (` dict` [
"access"(str),"refresh"(str) ] )"username"User username (str)