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
{{ message }}
This repository has been archived by the owner on Jun 28, 2024. It is now read-only.
When the Open API specification defines multiple authentication types and their are applied simultaneously the provider definition defines them as two separate authentication types.
the resulting security of APIs should include both basic authentication and the custom "api key" header X-Instance-Name. Without either one of those the call is considered unauthenticated
Expected Behavior
The two authentication types are used together.
Possible Solution
One solution would require to change the provider definition format to accommodate multiple auth types used simultaneously.
Otherwise, we can leave the provider definition as is and based on the indexed API docs make sure that both securitySchemes are used in the map.
I think this is more limitation that a bug. There is definitely some work in Engine that needs to be done to support this. @freaz Can SDK use more that one security id?
When the Open API specification defines multiple authentication types and their are applied simultaneously the provider definition defines them as two separate authentication types.
Refer to Using Multiple Authentication Types.
In the situation where security is defined as two types applied at the same type
the A and B must be applied at the same time.
For example, using the Raynet CRM API:
with security schemes defined as follows:
the resulting security of APIs should include both basic authentication and the custom "api key" header
X-Instance-Name
. Without either one of those the call is considered unauthenticatedExpected Behavior
The two authentication types are used together.
Possible Solution
One solution would require to change the provider definition format to accommodate multiple auth types used simultaneously.
Otherwise, we can leave the provider definition as is and based on the indexed API docs make sure that both
securitySchemes
are used in the map.Steps to Reproduce
superface prepare <raynet OAS>
Your Environment
The text was updated successfully, but these errors were encountered: