question

Rob McGarry avatar image
Rob McGarry asked David Marginian Deactivated edited

OAuth Redirect URL Rejection

When we tried the Request Merchant Auth request ; below is an error we are getting.


APP Name: Warrior Stage
Site Url: http://staging.warriorsms.com/
App Id: 2QYWKYFJZMBN8


Request API: https://sandbox.dev.clover.com/oauth/authorize?client_id=2QYWKYFJZMBN8&redirect_uri=https://staging.warriorsms.com/superadmin/web/studio/setup

Clover Response:

{"message": "The redirect URL https://staging.warriorsms.com/superadmin/web/studio/setup for app 2QYWKYFJZMBN8 has been rejected. Either redirect URL is not valid or redirect URL host does not match with site URL."}


We are aware that A redirect_uri passed to /oauth/authorize must be a subpath of the set Site URL. Must we use http://staging.warriorsms.com/setup exclusively?

Could the issue be the staging URL such as the Https vs Http or the added /superadmin/web/studio in our redirect URL vs site URL?

Thanks for your help.

OAuth
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
David Marginian avatar image
David Marginian Deactivated answered David Marginian Deactivated edited

Yes, the issue is likely that your site URL is http and your redirect URL is https. Why don't you change your site URL to be https?

10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Welcome to the
Clover Developer Community