question

Ben Ashby avatar image
Ben Ashby asked Thanh Nguyen commented

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 |3000

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 |3000

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 |3000

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 |3000

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 ♦♦ commented ·

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 |3000

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 |3000

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

Thanh Nguyen avatar image
Thanh Nguyen answered Thanh Nguyen commented

Hi, we are encountering the same issue as @Ben Ashby . We have been using "https://platform.devtest.ringcentral.com/restapi/oauth/authorize" for testing for a long time, and it's been working okay until recently. Now it always redirects us to "https://login.ringcentral.biz."

Are there any changes happening or is it currently under maintenance?

2 comments
1 |3000

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 ♦♦ commented ·

Looks like the issue surfaces again. The team is investigating and fixing it soon.

0 Likes 0 ·
Thanh Nguyen avatar image Thanh Nguyen Phong Vu ♦♦ commented ·

We got it worked back as normal. Thank you so much for your quick support, Team!

1 Like 1 ·

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