added basic bearer authentication to objc template (#6640)

This commit is contained in:
onlymate
2020-06-12 17:57:50 +02:00
committed by GitHub
parent e2e83fc7bf
commit a0f229302d

View File

@@ -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}}":