mirror of
https://github.com/go-gitea/gitea
synced 2025-07-22 18:28:37 +00:00
Add TOTP header to Swagger Documentation (#12402)
This commit is contained in:
@@ -15551,6 +15551,12 @@
|
||||
"name": "sudo",
|
||||
"in": "query"
|
||||
},
|
||||
"TOTPHeader": {
|
||||
"description": "Must be used in combination with BasicAuth if two-factor authentication is enabled.",
|
||||
"type": "apiKey",
|
||||
"name": "X-GITEA-OTP",
|
||||
"in": "header"
|
||||
},
|
||||
"Token": {
|
||||
"type": "apiKey",
|
||||
"name": "token",
|
||||
@@ -15575,6 +15581,9 @@
|
||||
},
|
||||
{
|
||||
"SudoHeader": []
|
||||
},
|
||||
{
|
||||
"TOTPHeader": []
|
||||
}
|
||||
]
|
||||
}
|
||||
|
Reference in New Issue
Block a user