POST
/
api
/
auth
/
admin-key
/
session
通过管理员密钥建立恢复会话
curl --request POST \
  --url https://wfapi.yuhe.space/api/auth/admin-key/session \
  --header 'Content-Type: application/json' \
  --data '
{
  "adminKey": "<string>"
}
'
{
  "errCode": 123,
  "errMessage": "<string>",
  "data": {
    "authenticated": true,
    "principal": {
      "userId": "<string>",
      "displayName": "<string>",
      "email": "jsmith@example.com",
      "permissions": [],
      "apiKeyId": "<string>",
      "roleNames": [
        "<string>"
      ]
    }
  }
}

Body

application/json
adminKey
string
required

Response

登录成功并写入 httpOnly cookie。

errCode
integer
required
errMessage
string
required
Allowed value: ""
data
object
required