can I set localhost url as OAuth Redirect URI?

  • 1
  • Question
  • Updated 1 week 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

  • 130 Points 100 badge 2x thumb

Posted 1 week ago

  • 1
Photo of Phong Vu

Phong Vu, Devangelist

  • 2,256 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

  • 130 Points 100 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,298 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

  • 130 Points 100 badge 2x thumb
Thank you