Schema
Users2FALoginRequest
Type:
object
Second factor user login details
code
· required
Type:
string
The Time-based One-Time Password of the Docker Hub account to authenticate with.
All schema constraints and annotations
{
"description": "The Time-based One-Time Password of the Docker Hub account to authenticate with.",
"example": "123456",
"type": "string"
}login_2fa_token
· required
Type:
string
The intermediate 2FA token returned from
/v2/users/login API.All schema constraints and annotations
{
"description": "The intermediate 2FA token returned from `/v2/users/login` API.",
"example": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c",
"type": "string"
}All schema constraints and annotations
{
"description": "Second factor user login details",
"examples": [
{
"code": "123456",
"login_2fa_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c"
}
],
"properties": {
"code": {
"description": "The Time-based One-Time Password of the Docker Hub account to authenticate with.",
"example": "123456",
"type": "string"
},
"login_2fa_token": {
"description": "The intermediate 2FA token returned from `/v2/users/login` API.",
"example": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c",
"type": "string"
}
},
"required": [
"login_2fa_token",
"code"
],
"type": "object"
}