Solved

Send SMS from User Phone number and extension not only Main company number and extension.

  • 26 November 2021
  • 2 replies
  • 488 views

I'm trying to integrate RingCentral API in C# for sending SMS or MMS. So I read documentation according to the documentation I create an APP in the console. APP security type is password base. I send SMS by using username, extension, and password. SMS send successfully. Now I create other users from the admin panel of RingCentral then every user has their phone number and extension so if any user login from my C# web app and tries to send SMS from his number and extension then an error is shown.

"error_description" : "Invalid resource owner credentials"


I found a solution that says bootstrap your APP set a static password for all extensions.

So how bootstrap APP?

icon

Best answer by Phong1426275020 28 November 2021, 20:37

View original

2 replies

Userlevel 1

You cannot do that with password flow authentication. In your case, you have to implement 3-legged authentication so that each user can login your app with their own credentials (username and password), which will then allow them to send SMS from their own number.

We have our CRM which is developed in asp.net core. Now we want to integrate RingCentral with our CRM so all users of RingCentral can send or receive SMS, MMS, and Fax from CRM.
So in the start, I create an app in the console which only allowed to send SMS from the main company number, not from all user's numbers.
After this, I create a 3 legged authorization app so every user can easily get tokens.

1638353743208.png

1638353579410.png

1638353633603.png

That's a new App that I create so every user can send SMS and other operations. So I face an error when I log in from the primary contact email then the token is generated otherwise error show Sorry, we don't recognize your email address.

1638353916995.png

Even this email is registered for one user.

1638354028604.pngIf I open user detail then invozeal@gmail is shown under the email section.

1638354129417.png

If I try to log in from the contact person's phone number then shows the password is not correct even I update the password but can't log in.

So how my all user list can be login and send SMS from their phone number??

Reply