From a0f229302df815f4d7aca46bbad2eb9ca5f793c3 Mon Sep 17 00:00:00 2001 From: onlymate Date: Fri, 12 Jun 2020 17:57:50 +0200 Subject: [PATCH] added basic bearer authentication to objc template (#6640) --- .../resources/objc/DefaultConfiguration-body.mustache | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/modules/openapi-generator/src/main/resources/objc/DefaultConfiguration-body.mustache b/modules/openapi-generator/src/main/resources/objc/DefaultConfiguration-body.mustache index ce336e66171e..d157d635b5ed 100644 --- a/modules/openapi-generator/src/main/resources/objc/DefaultConfiguration-body.mustache +++ b/modules/openapi-generator/src/main/resources/objc/DefaultConfiguration-body.mustache @@ -115,6 +115,7 @@ }, {{/isApiKey}} {{#isBasic}} + {{#isBasicBasic}} @"{{name}}": @{ @"type": @"basic", @@ -122,6 +123,16 @@ @"key": @"Authorization", @"value": [self getBasicAuthToken] }, + {{/isBasicBasic}} + {{#isBasicBearer}} + @"{{name}}": + @{ + @"type": @"bearer", + @"in": @"header", + @"key": @"Authorization", + @"value": [self getAccessToken] + }, + {{/isBasicBearer}} {{/isBasic}} {{#isOAuth}} @"{{name}}":