Skip to main content
Question

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

  • May 26, 2021
  • 8 replies
  • 1084 views

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?

8 replies

PhongVu
Community Manager
Forum|alt.badge.img
  • Community Manager
  • May 26, 2021

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?


  • Author
  • New Participant
  • May 26, 2021

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.


  • Author
  • New Participant
  • May 26, 2021

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


1.png


Is landing us here

1.png


PhongVu
Community Manager
Forum|alt.badge.img
  • Community Manager
  • May 26, 2021

Are you on a mobile device, tablet or iPad etc.?


PhongVu
Community Manager
Forum|alt.badge.img
  • Community Manager
  • May 26, 2021

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.


PhongVu
Community Manager
Forum|alt.badge.img
  • Community Manager
  • May 26, 2021

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.


  • Author
  • New Participant
  • May 26, 2021

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


  • New Participant
  • August 3, 2023

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?