Ask a Question

Specifying Oauth2 Redirect URI in SwaggerHub

New Member

Specifying Oauth2 Redirect URI in SwaggerHub

Hello... I'm new to SwaggerHub and have been stuck on this issue for a while.

I'm using an OAuth2.0 flow to allow client access to an AWS Cognito User Pool. In Cognito, client owners are able to configure multiple callback urls. This basically adds them to a whitelist of approved callback URLs (screenshot attached - though doesn't have to be localhost) - although the callback url must be specified when calling the authorize (oauth2/authorize/) endpoint using the redirect_uri query parameter. 


It appears that this parameter is fixed when using the access code oauth2 security scheme. Is it at all possible to change this parameter via SwaggerHub? If so, can it also be made a configurable parameter?


Thanks much.

SmartBear Alumni (Retired)

Hi @raffibag,


When you test requests directly from SwaggerHub, OAuth redirect_uri is: in SwaggerHub SaaS

http(s)://SERVER/oaut2_redirect in SwaggerHub On-Premise


This URL is fixed and cannot be changed.

Helen Kosova
SmartBear Documentation Team Lead
Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
Showing results for 
Search instead for 
Did you mean: