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.
Hi raffibag,
When you test requests directly from SwaggerHub, OAuth redirect_uri is:
https://app.swaggerhub.com/oauth2_redirect in SwaggerHub SaaS
http(s)://SERVER/oaut2_redirect in SwaggerHub On-Premise
This URL is fixed and cannot be changed.