You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I'm using bravado for end-to-end checks. One use case is :
Use default_apikey for every request
Create new_apikey using API
Check that requests with new_apikey applied work.
Currently to make this work one should wrap SwaggerClient/RequestsClient or create separate SwaggerClients for each api key. Reason is that ApiKeyAuthenticator.apply overwrites any custom auth headers from _request_options.
It would be better if ApiKeyAuthenticator.apply could skip setting request.headers[self.param_name] if this header already exists.
I suppose similar thing is applicable to other Authenticator variations.
The text was updated successfully, but these errors were encountered:
Hi, I'm using bravado for end-to-end checks. One use case is :
default_apikey
for every requestnew_apikey
using APInew_apikey
applied work.Currently to make this work one should wrap SwaggerClient/RequestsClient or create separate SwaggerClients for each api key. Reason is that
ApiKeyAuthenticator.apply
overwrites any custom auth headers from_request_options
.It would be better if
ApiKeyAuthenticator.apply
could skip settingrequest.headers[self.param_name]
if this header already exists.I suppose similar thing is applicable to other Authenticator variations.
The text was updated successfully, but these errors were encountered: