forked from loafle/openapi-generator-original
[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:
parent
d7ac1e4337
commit
2544fa2928
@ -231,7 +231,7 @@ module {{moduleName}}
|
|||||||
type: 'api_key',
|
type: 'api_key',
|
||||||
in: {{#isKeyInHeader}}'header'{{/isKeyInHeader}}{{#isKeyInQuery}}'query'{{/isKeyInQuery}},
|
in: {{#isKeyInHeader}}'header'{{/isKeyInHeader}}{{#isKeyInQuery}}'query'{{/isKeyInQuery}},
|
||||||
key: '{{keyParamName}}',
|
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}}
|
{{/isApiKey}}
|
||||||
{{#isBasic}}
|
{{#isBasic}}
|
||||||
|
@ -249,14 +249,14 @@ module XAuthIDAlias
|
|||||||
type: 'api_key',
|
type: 'api_key',
|
||||||
in: 'header',
|
in: 'header',
|
||||||
key: 'X-Api-Key',
|
key: 'X-Api-Key',
|
||||||
value: api_key_with_prefix('api_key')
|
value: api_key_with_prefix('X-Api-Key')
|
||||||
},
|
},
|
||||||
'api_key_query' =>
|
'api_key_query' =>
|
||||||
{
|
{
|
||||||
type: 'api_key',
|
type: 'api_key',
|
||||||
in: 'query',
|
in: 'query',
|
||||||
key: 'api_key',
|
key: 'api_key',
|
||||||
value: api_key_with_prefix('api_key_query', 'api_key')
|
value: api_key_with_prefix('api_key', 'api_key')
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user