question

Riel Orilla avatar image
Riel Orilla asked Phong Vu commented

3-legged OAuth flow authorization code no refresh_token value

Hi, Good day!

We are having an issue with RC Integration. The integration was working fine with password based authflow but we recently had to switch 3-legged oauthflow.

It is working fine but except for one of our tenants. We switch their account but they are unable to send SMS from our CRM. They have their own Ring Central account. All we did is switch their Auth to 3-legged Authflow.


We are not receiving the “refresh token”. This is the response that we get (I’ve added the **sanitized** text to conceal the data):


{

"access_token": "U0pDMDFQMjNQQVMwMHxBQUF2eUZtZkZaVE5Ebk50Sz**sanitized**",

token_type": "bearer",

"expires_in": 3600,

"scope": "SMS",

"owner_id": "**sanitized**",

"endpoint_id": "**sanitized**"

}


Typically the response we get includes the refresh_token value:

"refresh_token": "SUFEMDFQMTJQQVMwMHxBQUJRNF92NVkwYzA**sanitized**", "refresh_token_expires_in": 604800,


Thank you for your assistance.

sms and text messaging
1 |3000

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

1 Answer

Phong Vu avatar image
Phong Vu answered Phong Vu commented

When creating the app, did you say "Yes" to the "Issues refresh tokens" option?

1695918646398.png


You can also post the app client id here so I can check it for you.


1695918646398.png (89.3 KiB)
4 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.

Riel Orilla avatar image Riel Orilla commented ·

Hi,

Yes, we set the refresh tokens to "Yes".
Client ID: C7GUFmkxRtu_kbkP4RWE6w

Also, I tried creating a new app instead but we can't login to Sandbox for some reason.

0 Likes 0 ·
Phong Vu avatar image Phong Vu ♦♦ Riel Orilla commented ·

I don't see any exceptional configs from this app. I recommend you to submit a dev support ticket so the engineer can investigate it further.

0 Likes 0 ·
Riel Orilla avatar image Riel Orilla Phong Vu ♦♦ commented ·

I will do.

By the way, do you know why we can't sign in to Sandbox? We tried multiple browsers and different computers as well.

1695919901217.png

0 Likes 0 ·
1695919901217.png (19.7 KiB)
Show more comments

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