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) --- routers/api/v1/api.go | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'routers/api') diff --git a/routers/api/v1/api.go b/routers/api/v1/api.go index b03f547a6b..f67eebacc4 100644 --- a/routers/api/v1/api.go +++ b/routers/api/v1/api.go @@ -27,6 +27,7 @@ // - AuthorizationHeaderToken : // - SudoParam : // - SudoHeader : +// - TOTPHeader : // // SecurityDefinitions: // BasicAuth: @@ -54,6 +55,11 @@ // name: Sudo // in: header // description: Sudo API request as the user provided as the key. Admin privileges are required. +// TOTPHeader: +// type: apiKey +// name: X-GITEA-OTP +// in: header +// description: Must be used in combination with BasicAuth if two-factor authentication is enabled. // // swagger:meta package v1 -- cgit v1.2.3