I work with legacy Spring project and some of the endpoint accept Authorization header without and prefix, like Bearer or Basic. So it is just plain string. For example: Authorization: The springdoc or swagger-ui library actually depend on the SecurityScheme which is a predefined scheme. I can choose scheme bearer but I don't want it to prepend the Bearer string when inputting the token via input field. Is there a way to override this behavior?
Asked
Active
Viewed 293 times
0
-
There's an [API key](https://swagger.io/docs/specification/authentication/api-keys/) security scheme for this purpose. – Helen Apr 05 '23 at 06:34