scalar icon indicating copy to clipboard operation
scalar copied to clipboard

Ability to use two auth methods at the same time

Open marclave opened this issue 1 year ago β€’ 5 comments

Discussed in https://github.com/scalar/scalar/discussions/1439

Originally posted by mattoni April 15, 2024 image

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.

marclave avatar May 24 '24 16:05 marclave

We can do this, but I wonder how the UI would look like then? (@scalar/api-reference and @scalar/api-client)

hanspagel avatar Jun 07 '24 13:06 hanspagel

+1 for this, I want the user to see all available security schemes for the endpoint

thelinuxlich avatar Jun 10 '24 14:06 thelinuxlich

+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.

Screenshot 2024-07-25 at 13 55 59

Our security part is basically a copy from the Multiple API Keys authentication section of the OpenAPI docs.

matthias-hausberger avatar Jul 25 '24 12:07 matthias-hausberger

πŸ‘‹ @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 avatar Jul 25 '24 15:07 marclave

@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 :)

matthias-hausberger avatar Jul 26 '24 13:07 matthias-hausberger

@marclave any updates on this? 😬

matthias-hausberger avatar Aug 12 '24 12:08 matthias-hausberger

@matthias-hausberger this is in the latest release done by @amritk :)

marclave avatar Aug 12 '24 18:08 marclave