swagger-ui icon indicating copy to clipboard operation
swagger-ui copied to clipboard

Validate access token when click authorize button on swagger ui

Open manuniet opened this issue 5 years ago • 2 comments

I have on api which generates the access token. We have other apis as well which will use the generated token, I want to validate the token when click on authorize button. If token generated using the first api is not passed correctly, It shouldn't let the user to use the try out feature. Any lead you be much appreciated.

manuniet avatar Mar 04 '20 07:03 manuniet

I'm also needing to get the token info.

If the token is not valid i must not show the endpoints to the user.

rafa-acioly avatar May 29 '20 13:05 rafa-acioly

I am a bit confused about this issue of token being generated by other API and the token needs to be validated by Swagger UI authorize button when clicked on. As far as I know about the Swagger UI, once the authorize button gets a click a pop up shows up allowing the user to login without the server credentials being required and if that token can be required from the Authorize button that would be more like login using own credentials. If the explanation for this issue can be very much clear about the other API generating the token and Swagger UI that then would allow me to work on this issue.

Mathias02 avatar Mar 30 '25 10:03 Mathias02