Skip to main content
The First Step
Jul 12, 2018 10:05 PM UTC
Solved

Can I set a localhost URL as an OAuth Redirect URI?

Is it possible to set http://localhost/ringcentral/index.php as OAuth Redirect URI?

My app's authorization flows are

  • Authorization Code
  • Refresh Access Token

I don't have a live and publicly accessible URL to set as an OAuth Redirect URI, so I don't know how to complete the OAuth process.

I'm trying to set up and run the following demo:

https://github.com/ringcentral/ringcentral-php

Thanks!

PhongVu
PhongVuAnswer
Community Manager
Jul 12, 2018 11:43 PM UTC
Hi Nibu,

Yes you can but not directly like that. Check out the ngrok tunner (https://ngrok.com/) and use that tool for your local app.

+ Phong

3 replies

PhongVu
Community Manager
PhongVuAnswer
Community Manager
Jul 12, 2018 11:43 PM UTC
Hi Nibu,

Yes you can but not directly like that. Check out the ngrok tunner (https://ngrok.com/) and use that tool for your local app.

+ Phong
Employee
Jul 13, 2018 3:06 AM UTC
For oAuth redirect URI, yes you can use a local one and it should work. Because the redirection happens in your local browser.

However WebHook URIs have to be public.
The First Step
Jun 20, 2019 9:57 PM UTC

You can set any callback uri, but you need to keep in mind that the callback uri need to be exactly the same you have configured during creating the app in developer portal