question

mark-willis3151 avatar image
mark-willis3151 asked Phong Vu commented

Http 400 - Unauthorized for this grant type

Dear RingCentral Support Team/Community Members,


For one of our application, we are using RingCentral Api to develop Send SMS feature. Weve followed steps as per RingCentral help documentation to generate OAuth token to send sms. We are NOT able to identify root cause why following api returns 400 error?


Can you please help us to sort out this issue? Please refer following snaps that weve tried to retrieve oAuth token.

Thanks in advance!

!

sdk
1 |3000

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

Tyler Liu avatar image
Tyler Liu answered
It probably means your app doesn't support password authorization flow.

Please check this screenshot:  https://cloud.githubusercontent.com/assets/733544/18026560/b93e5356-6c7d-11e6-92a9-d35d28325e69.png  from this GitHub issue:  https://github.com/ringcentral/ringcentral-php/issues/39
1 |3000

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

Anirban avatar image
Anirban answered

Make sure the application you created supports Password flow since your (grant_type=password) .

Please note, application created with different platform type will have different grant_type.

for more info, here is wonderful way it has answered with animated Gif image that will easily help you to understand the process: https://stackoverflow.com/questions/47692828/ringcentral-auth-token-failed-in-curl-call-unauthorized-for-this-grant-type/47745436#47745436

1 |3000

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

Cao Anh Dung avatar image
Cao Anh Dung answered Phong Vu commented

Now, That not trust. Any have more solution for that. I couldn't find the setting on Password follow.

1 comment
1 |3000

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

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

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