News & Announcements User Community Developer Community

Welcome to the RingCentral Community

Please note the community is currently under maintenance and is read-only.

Make sure to review our Terms of Use and Community Guidelines.
  Please note the community is currently under maintenance and is read-only.
Home » Developers
headers for sms password flow
Tags: app administration
May 19, 2021 at 12:30pm   •   3 replies  •  0 likes
Gregg Schmidt

I hate to do this but while my sandbox app has met ringCentral's requirements for graduation, it hasn't met mine.

Somewhere in the app, it understandably performs the password flow auth.

The problem is I don't know where or when this is happening.

I would love to get the headers and parameters required so that I can generate what I think is simple code myself. This also means that if something goes wrong in the future, I have a much better chance of diagnosing the issue and fixing it quickly.

I can mimic the http request below as long as I know which value to use in place of <some long unidentified string>

POST /restapi/oauth/token HTTP/1.1 
Accept: application/json 
Content-Type: application/x-www-form-urlencoded 
Authorization: Basic <some long unidentified string>
grant_type=password&username=<username>&extension=<simpleextension ie: 101>&password=<password>

3 Answers
answered on May 24, 2021 at 8:09am  

Thank you Phong , your response was extremely helpful.

Sorry I didn't respond sooner.

It took me until this morning to get it work as expected.

answered on May 19, 2021 at 12:52pm  

What is your question exactly?

answered on May 19, 2021 at 1:09pm  

Sorry about the confusion. There's a chance I'm working on too many things at a time.

What piece of data is the string of text to the right of "Authorization: Basic " shown in the code below ?

POST /restapi/oauth/token HTTP/1.1  
Accept: application/json  
Content-Type: application/x-www-form-urlencoded  
Authorization: Basic cmVsLWFsbC1wZXJtaXNzaWXFjMmpRZmlQcnlkSUkweE92QQ== 

on May 19, 2021 at 2:16pm   •  0 likes

It is the base64 encoded string of your "app-client-id:app-client-secret"

A new Community is coming to RingCentral!

Posts are currently read-only as we transition into our new platform.

We thank you for your patience
during this downtime.

Try Workflow Builder

Did you know you can easily automate tasks like responding to SMS, team messages, and more? Plus it's included with RingCentral Video and RingEX plans!

Try RingCentral Workflow Builder

Developer Platform
Integrated Apps
App Gallery
Developer support
Games and rewards

Resource center
Product Releases
App Download
RingCentral App login
Admin Portal Login
Contact Sales
© 1999-2024 RingCentral, Inc. All rights reserved. Legal Privacy Notice Site Map Contact Us