cancel
Showing results for 
Search instead for 
Did you mean: 

Redirect URL for OAuth2 is missing in Spec!

refaelr
Visitor

Redirect URL for OAuth2 is missing in Spec!

Hello, 

I'm trying to login to SF API's with Oauth2 and get mismatch in redirect URL error

The spec:

 

components:
securitySchemes:
OAuth2:
type: oauth2
flows:
authorizationCode:
authorizationUrl: https://qa-x.cs82.force.com/services/oauth2/authorize
tokenUrl: https://qa-x.cs82.force.com/services/oauth2/token
scopes:
api: Grant access to API clients
web: Grant access to Web clients

 

Did anyone manage to fix the redirect URL issue? 
I've seen it in other thread without any valid solution

Thanks so much!!

1 REPLY 1
HKosova
Moderator

Re: Redirect URL for OAuth2 is missing in Spec!

The OAuth redirect URI is client-specific rather than an API property, that's why it's not in the spec.

 

If you use the open-source Swagger UI and host it yourself, the redirect URI is the location of the oauth2-redirect.html file on your server.

 

If you use SwaggerHub, the redirect URI is:


Helen Kosova
SmartBear Documentation Team Lead
________________________
Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
New Here?
Join us and watch the welcome video: