[Ruby-client] Use secuirtyScheme Key for api_key (#19740)

* replace name by keyParamName in apiKey configuration

* update configuration generated in sample
This commit is contained in:
Maxime Vincent 2024-10-01 13:45:27 +02:00 committed by GitHub
parent d7ac1e4337
commit 2544fa2928
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View File

@ -231,7 +231,7 @@ module {{moduleName}}
type: 'api_key',
in: {{#isKeyInHeader}}'header'{{/isKeyInHeader}}{{#isKeyInQuery}}'query'{{/isKeyInQuery}},
key: '{{keyParamName}}',
value: api_key_with_prefix('{{name}}'{{#vendorExtensions.x-auth-id-alias}}, '{{.}}'{{/vendorExtensions.x-auth-id-alias}})
value: api_key_with_prefix('{{keyParamName}}'{{#vendorExtensions.x-auth-id-alias}}, '{{.}}'{{/vendorExtensions.x-auth-id-alias}})
},
{{/isApiKey}}
{{#isBasic}}

View File

@ -249,14 +249,14 @@ module XAuthIDAlias
type: 'api_key',
in: 'header',
key: 'X-Api-Key',
value: api_key_with_prefix('api_key')
value: api_key_with_prefix('X-Api-Key')
},
'api_key_query' =>
{
type: 'api_key',
in: 'query',
key: 'api_key',
value: api_key_with_prefix('api_key_query', 'api_key')
value: api_key_with_prefix('api_key', 'api_key')
},
}
end