Validate access token when click authorize button on swagger ui
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.
I'm also needing to get the token info.
If the token is not valid i must not show the endpoints to the user.
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.