question

Ben Ashby avatar image
Ben Ashby asked Ben Ashby answered

https://platform.devtest.ringcentral.com/restapi/oauth/authorize 302

We are performing oauth against a sandbox app. The generated url is https://platform.devtest.ringcentral.com/restapi/oauth/authorize......................... Which is normal. As of just recently, that is now 302'ing us to `https://login.ringcentral.biz ` Which is complaining about sandbox accounts not being supported. Is there a path forward? This is new. It was working just a couple days ago and we were not being 302'd

,

I tried to perform oauth against a sandbox app. The url generated was `https://platform.devtest.ringcentral.com/restapi/oauth/authorize ...............` as usual but that URL is now 302'ing me to `https://login.ringcentral.biz `. And logging in there tells me that sandbox accounts aren't supported.


The 302 is new. It never did that before for us. Is there a path forward?

developer sandboxoauthoauth2
1 |1500 characters needed characters left characters exceeded

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

I am not sure about why it took you to ringcentral.biz.

What are other parameters you used with that endpoint? Your app authentication is 3-legged OAuth, right?

1 |1500 characters needed characters left characters exceeded

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

Ben Ashby avatar image
Ben Ashby answered Ben Ashby edited

When it is time to perform oauth we generate the following URL (formatted for convienence)


https://platform.devtest.ringcentral.com/restapi/oauth/authorize?

response_type=code

&redirect_uri=https://our-endpoint-to-receive-the-code

&client_id=Sgg-6WhrRSiHkNBeljhE6g

&state=STRING_WE_LOCALLY_USE_TO_IDENTIFY_CLIENT

&code_challenge=FhqvHz1NzG5NLGSdA06mcjUm2hwNTeOC-4NuOMkDkRM

&code_challenge_method=S256


That has always just let us login straight to https://platform.devtest.ringcentral.com. But is now returning a 302 with the Location header


https://login.ringcentral.biz/mobile/loginDispatcher?responseType=code&clientId=Sgg-6WhrRSiHkNBeljhE6g&brandId=1250&state=STRING_WE_LOCALLY_USE_TO_IDENTIFY_CLIENT&localeId=en_US&endpointId=&session=8762265263498758197&display=page&prompt=&scope=&appUrlScheme=https%3A%2F%2Four-endpoint-to-receive-the-code&ui_options=&code_challenge=FhqvHz1NzG5NLGSdA06mcjUm2hwNTeOC-4NuOMkDkRM&code_challenge_method=S256&hideNavigationBar=true


Does that provide you with the information you needed? I am not 100% sure about the 3 legged oauth. We have been doing this for quite some time successfully and haven't changed anything on our end.

1 |1500 characters needed characters left characters exceeded

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

Ben Ashby avatar image
Ben Ashby answered Phong Vu edited

In addition, when logged into the developer portal, Sandbox Environment Online Account Portal Link here


1.png


Is landing us here

1.png


1.jpg (37.1 KiB)
1.jpg (37.1 KiB)
1.png (156.2 KiB)
1.png (156.2 KiB)
1 comment
1 |1500 characters needed characters left characters exceeded

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

Can you clear your browser cookies and retry? And hold on on the OAuth, it seems there is a temporary issue and I asked the team to investigate it.

0 Likes 0 ·
Phong Vu avatar image
Phong Vu answered

Just got a notification from the eng team. The issue is fixed. Can you try again and let me know if you still face that problem.

1 |1500 characters needed characters left characters exceeded

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

Ben Ashby avatar image
Ben Ashby answered

It is working as expected now. Thank you very much. We appreciate it.

1 |1500 characters needed characters left characters exceeded

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

Developer sandbox tools

Using the RingCentral Phone for Desktop, you can dial or receive test calls, send and receive test SMS or Fax messages in your sandbox environment.

Download RingCentral Phone for Desktop:

Tip: switch to the "sandbox mode" before logging in the app:

  • On MacOS: press "fn + command + f2" keys
  • On Windows: press "Ctrl + F2" keys