cancel
Showing results for 
Search instead for 
Did you mean: 

Specifying Oauth2 Redirect URI in SwaggerHub

SOLVED
Highlighted
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.

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Moderator

Re: Specifying Oauth2 Redirect URI in SwaggerHub

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.


Helen Kosova
SmartBear Documentation Team Lead
________________________
Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️

View solution in original post

1 REPLY 1
Highlighted
Moderator

Re: Specifying Oauth2 Redirect URI in SwaggerHub

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.


Helen Kosova
SmartBear Documentation Team Lead
________________________
Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️

View solution in original post

New Here?
Join us and watch the welcome video: