question

nibu-eapen10876 avatar image
nibu-eapen10876 asked Anirban Sen Chowdhary answered

can I set localhost url as OAuth Redirect URI?

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!



topic-default
1 |1000

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

Phong Vu avatar image
Phong Vu answered nibu-eapen10876 commented
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
1 comment
1 |1000

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

nibu-eapen10876 avatar image nibu-eapen10876 commented ·
Thanks Phong. It's a great tool that I forgot for a long. Thanks very much.
0 Likes 0 ·
Tyler Liu avatar image
Tyler Liu answered nibu-eapen10876 commented
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.
1 comment
1 |1000

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

nibu-eapen10876 avatar image nibu-eapen10876 commented ·
Thank you
0 Likes 0 ·
Anirban Sen Chowdhary avatar image
Anirban Sen Chowdhary answered

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

1 |1000

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

Write an Answer

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

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