Skip to content

Commit a0df9fa

Browse files
authored
Merge pull request #1207 from swagger-api/shamrockly-fix1177
Shamrockly fix1177
2 parents f31e101 + 44a8400 commit a0df9fa

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/resources/handlebars/Java/libraries/okhttp4-gson/ApiClient.mustache

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,8 @@ public class ApiClient {
9292
authentications = new HashMap<String, Authentication>();{{#authMethods}}{{#isBasic}}
9393
authentications.put("{{name}}", new HttpBasicAuth());{{/isBasic}}{{#isApiKey}}
9494
authentications.put("{{name}}", new ApiKeyAuth({{#isKeyInHeader}}"header"{{/isKeyInHeader}}{{^isKeyInHeader}}"query"{{/isKeyInHeader}}, "{{keyParamName}}"));{{/isApiKey}}{{#isOAuth}}
95-
authentications.put("{{name}}", new OAuth());{{/isOAuth}}{{/authMethods}}
95+
authentications.put("{{name}}", new OAuth());{{/isOAuth}}{{#isBearer}}
96+
authentications.put("{{name}}", new OAuth());{{/isBearer}}{{/authMethods}}
9697
// Prevent the authentications from being modified.
9798
authentications = Collections.unmodifiableMap(authentications);
9899
}

0 commit comments

Comments
 (0)