Antonio Gamiz Delgado
Antonio Gamiz Delgado

Reputation: 2113

How to inject an already generated and valid token into Swagger UI / Redocly UI of Fast API

in my company we have the following use case:

  1. Fast api servers with /docs to show the Swagger UI or the Redocly UI.
  2. One login to access the /docs pages.

With the out of the box setup of Fast API docs, we need to both login and generate a token using the auth modal we specify. We would like to avoid this, and using a token generated when you login to the /docs endpoint.

Do you know if this is actually possible?

Upvotes: 0

Views: 46

Answers (0)

Related Questions