Forum Discussion

btalebpour's avatar
btalebpour
Occasional Contributor
2 years ago

Is it possible to customize the Authorization UI in the Swagger editor?

Hi there,

 

I have created specifications for my API under openapi V3.0.3. My API can be authorized in two ways: By passing a JWT token or a combination of accessKey, secretKey, and 2 more pieces of data. I don't have any issues with implementing these approaches and everything works fine. The problem is how the authorization screen looks like. It displays 5 separate fields the user should fill in either a token or 4 other values and hit the Authorize btn for each. I'd like to have a radio btn or dropdown where the user can select his/her desire authorization method, enter value(s), and hit the btn. Or, at the minimum, to have those 4 related fields and then one btn to authorize.

No RepliesBe the first to reply