Skip to content
This repository has been archived by the owner on Jul 19, 2023. It is now read-only.

Commit

Permalink
fix(python): for x-auth-id-alias use keyParamName
Browse files Browse the repository at this point in the history
  • Loading branch information
mdibaiee committed Jul 1, 2020
1 parent e8d0f4e commit adde8c4
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -482,14 +482,14 @@ conf = {{{packageName}}}.Configuration(
auth = {}
{{#authMethods}}
{{#isApiKey}}
if '{{name}}' in self.api_key{{#vendorExtensions.x-auth-id-alias}} or '{{.}}' in self.api_key{{/vendorExtensions.x-auth-id-alias}}:
if '{{name}}' in self.api_key{{#vendorExtensions.x-auth-id-alias}} or '{{keyParamName}}' in self.api_key{{/vendorExtensions.x-auth-id-alias}}:
auth['{{name}}'] = {
'type': 'api_key',
'in': {{#isKeyInCookie}}'cookie'{{/isKeyInCookie}}{{#isKeyInHeader}}'header'{{/isKeyInHeader}}{{#isKeyInQuery}}'query'{{/isKeyInQuery}},
'key': '{{keyParamName}}',
'value': self.get_api_key_with_prefix(
'{{name}}',{{#vendorExtensions.x-auth-id-alias}}
alias='{{.}}',{{/vendorExtensions.x-auth-id-alias}}
alias='{{keyParamName}}',{{/vendorExtensions.x-auth-id-alias}}
),
}
{{/isApiKey}}
Expand Down

0 comments on commit adde8c4

Please sign in to comment.