From 7b260acd7b3abf8c7b69cc50340c91ac5808a938 Mon Sep 17 00:00:00 2001 From: 6543 <6543@obermui.de> Date: Sun, 2 Aug 2020 14:01:12 +0200 Subject: Add TOTP header to Swagger Documentation (#12402) --- templates/swagger/v1_json.tmpl | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'templates/swagger') diff --git a/templates/swagger/v1_json.tmpl b/templates/swagger/v1_json.tmpl index 28a33fb3d3..c601809a75 100644 --- a/templates/swagger/v1_json.tmpl +++ b/templates/swagger/v1_json.tmpl @@ -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": [] } ] } -- cgit v1.2.3