I have a SwaggerHub definition and I want to use the 'Try it out' function to pull data from my API Gateway page. This API is restricted using a Cognito Authorizer.
Currently I have created a separate web page where I log into my Cognito UserPool and then it returns the id_token
. I then copy this value and paste it into my SwaggerHub definition in the Authorization
header value each time I make a call.
Is there a way I can do the authorisation directly from SwaggerHub rather than having to get the id token from another method first?