Skip to content

Commit

Permalink
Merge pull request #1207 from swagger-api/shamrockly-fix1177
Browse files Browse the repository at this point in the history
Shamrockly fix1177
  • Loading branch information
HugoMario authored Nov 9, 2023
2 parents f31e101 + 44a8400 commit a0df9fa
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,8 @@ public class ApiClient {
authentications = new HashMap<String, Authentication>();{{#authMethods}}{{#isBasic}}
authentications.put("{{name}}", new HttpBasicAuth());{{/isBasic}}{{#isApiKey}}
authentications.put("{{name}}", new ApiKeyAuth({{#isKeyInHeader}}"header"{{/isKeyInHeader}}{{^isKeyInHeader}}"query"{{/isKeyInHeader}}, "{{keyParamName}}"));{{/isApiKey}}{{#isOAuth}}
authentications.put("{{name}}", new OAuth());{{/isOAuth}}{{/authMethods}}
authentications.put("{{name}}", new OAuth());{{/isOAuth}}{{#isBearer}}
authentications.put("{{name}}", new OAuth());{{/isBearer}}{{/authMethods}}
// Prevent the authentications from being modified.
authentications = Collections.unmodifiableMap(authentications);
}
Expand Down

0 comments on commit a0df9fa

Please sign in to comment.