can I set localhost url as OAuth Redirect URI?

  • 1
  • Question
  • Updated 2 months ago
can i set http://localhost/ringcentral/index.php as OAuth Redirect URI.?

My app's "Authorization Flows : " are Authorization Code and Refresh Access Token

I don't have a live url to set it as OAuth Redirect URI

I'm trying to setup and running the demo https://github.com/ringcentral/ringcentral-php


Thanks!
Photo of Nibu Eapen

Nibu Eapen

  • 280 Points 250 badge 2x thumb

Posted 2 months ago

  • 1
Photo of Phong Vu

Phong Vu, Devangelist

  • 2,786 Points 2k badge 2x thumb
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
Photo of Nibu Eapen

Nibu Eapen

  • 280 Points 250 badge 2x thumb
Thanks Phong. It's a great tool that I forgot for a long. Thanks very much.
Photo of Tyler Long

Tyler Long, Official Rep

  • 6,918 Points 5k badge 2x thumb
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.
Photo of Nibu Eapen

Nibu Eapen

  • 280 Points 250 badge 2x thumb
Thank you