docusaurus-openapi-docs icon indicating copy to clipboard operation
docusaurus-openapi-docs copied to clipboard

Token fetching

Open drwelby opened this issue 1 year ago • 1 comments

Is your feature request related to a problem?

Unless my spec isn't rendering right, it looks like if an endpoint, for instance, uses Oauth2 password flow, the request parameters box has an input for a bearer token but no way to fetch that token using the information in the OpenAPI spec.

Describe the solution you'd like

Ideally there should be a way fetch a token through the page UI. If the state can be preserved between pages, having the process be an "Authenticate Me" user flow and have the token persist and populate across different endpoints would be even more convenient .

Describe alternatives you've considered

While token operations don't fit the REST model of OpenAPI very well, we can make and generate documentation for a "Get Token" endpoint and the user can copy and paste their token for the response. However this is more awkward that it should be.

drwelby avatar Jun 21 '23 21:06 drwelby