diff --git a/routers/api/v1/api.go b/routers/api/v1/api.go index d428294036..b8af31fa75 100644 --- a/routers/api/v1/api.go +++ b/routers/api/v1/api.go @@ -22,8 +22,6 @@ // // Security: // - BasicAuth : -// - Token : -// - AccessToken : // - AuthorizationHeaderToken : // - SudoParam : // - SudoHeader : @@ -32,16 +30,6 @@ // SecurityDefinitions: // BasicAuth: // type: basic -// Token: -// type: apiKey -// name: token -// in: query -// description: This authentication option is deprecated for removal in Forgejo v13.0.0. Please use AuthorizationHeaderToken instead. -// AccessToken: -// type: apiKey -// name: access_token -// in: query -// description: This authentication option is deprecated for removal in Forgejo v13.0.0. Please use AuthorizationHeaderToken instead. // AuthorizationHeaderToken: // type: apiKey // name: Authorization diff --git a/templates/swagger/v1_json.tmpl b/templates/swagger/v1_json.tmpl index db2ca9dc13..da3b14da92 100644 --- a/templates/swagger/v1_json.tmpl +++ b/templates/swagger/v1_json.tmpl @@ -31592,12 +31592,6 @@ } }, "securityDefinitions": { - "AccessToken": { - "description": "This authentication option is deprecated for removal in Forgejo v13.0.0. Please use AuthorizationHeaderToken instead.", - "type": "apiKey", - "name": "access_token", - "in": "query" - }, "AuthorizationHeaderToken": { "description": "API tokens must be prepended with \"token\" followed by a space.", "type": "apiKey", @@ -31624,24 +31618,12 @@ "type": "apiKey", "name": "X-FORGEJO-OTP", "in": "header" - }, - "Token": { - "description": "This authentication option is deprecated for removal in Forgejo v13.0.0. Please use AuthorizationHeaderToken instead.", - "type": "apiKey", - "name": "token", - "in": "query" } }, "security": [ { "BasicAuth": [] }, - { - "Token": [] - }, - { - "AccessToken": [] - }, { "AuthorizationHeaderToken": [] },