Ability to use two auth methods at the same time
Discussed in https://github.com/scalar/scalar/discussions/1439
Originally posted by mattoni April 15, 2024
I have an API that utilizes two required authorization methods at the same time (bearer token and a special header). It would be nice if this allowed me to use both at the same time without having to manually provide the custom header for each request.
We can do this, but I wonder how the UI would look like then? (@scalar/api-reference and @scalar/api-client)
+1 for this, I want the user to see all available security schemes for the endpoint
+1 here. Coming from Gitbook (which uses the scalar client?), and our authentication also requires to custom headers for auth, a key and a secret. The UI only lets me switch between the two, although both are required. According to the OpenAPI documentation, a "pair" of API keys can be defined.
Our security part is basically a copy from the Multiple API Keys authentication section of the OpenAPI docs.
π @matthias-hausberger ! this is something we are working on now that we have released our new api client : )
i'd expect next week we should have this implemented : )
@marclave Ah that's awesome, that would be just in time for publishing our docs! I did notice that things are changing (Request name is properly displayed, authentication displays apiKey,..) so, nice that there's some movement :)
@marclave any updates on this? π¬
@matthias-hausberger this is in the latest release done by @amritk :)