We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b81b5b2 commit fe22d02Copy full SHA for fe22d02
src/main/resources/handlebars/csharp/api.mustache
@@ -438,6 +438,13 @@ namespace {{packageName}}.{{apiPackage}}
438
localVarHeaderParams["Authorization"] = "Basic " + ApiClient.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password);
439
}
440
{{/isBasic}}
441
+ {{#isBearer}}
442
+ // bearer required
443
+ if (!String.IsNullOrEmpty(this.Configuration.AccessToken))
444
+ {
445
+ localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken;
446
+ }
447
+ {{/isBearer}}
448
{{#isOAuth}}
449
// oauth required
450
if (!String.IsNullOrEmpty(this.Configuration.AccessToken))
0 commit comments