Question

headers for sms password flow

  • 19 May 2021
  • 4 replies
  • 434 views

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>



4 replies

What is your question exactly?

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== 
grant_type=password&username=18559100010&extension=101&password=121212  


Userlevel 1

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

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.


Reply