News & Announcements User Community Developer Community

Welcome to the RingCentral Community

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

Search
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
"invalid_client" while creating auth token
Tags: authentication
Jun 12, 2019 at 11:22pm   •   2 replies  •  0 likes
Hernan Domingo

Content-Type:application/x-www-form-urlencoded

Authorization:Basic xxxxxxx

Accept:application/json

grant_type:password username:+16056108898 password:***** extension:9

We got an error "invalid_client". We also put app key: secret key using encoding from https://www.base64encode.org/ but still not success.

For ref : Re: RingCentral | Case # 08398133 [ ] [ ] [ ] [ ] [ ref:_00D80aRUX._5002H19i5Ij:ref ]

2 Answers
answered on Jun 22, 2019 at 2:33pm  

This type of question has been asked multiple type in this forum. Most of the case the issue arise with the wrong platform selection for the application. The public and private app will have different grant_type.

Things to check id your Client id & secret. Make sure you written it correctly and converted into base64. Make sure you use correct extention.

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 proccess: https://stackoverflow.com/questions/47692828/ringcentral-auth-token-failed-in-curl-call-unauthorized-for-this-grant-type/47745436#47745436


 0
answered on Jun 13, 2019 at 10:49am  

Hi Hernan,

First of all, next time please make you question clear so we can help better. Also don't post sensitive data in your question (it is not safe to reveal the client id and secret even you just encoded with based64).

Back to your question. I think you specified a wrong platform type to use with password flow authentication. For password flow login, you have to create an app with the platform type set to "Server-only (No UI). So please create a new app with correct platform type and try again.

Also, is there a reason why you are not using RingCentral SDKs? If not, please check out RingCentral official SDKs.

If you are a beginner, these quick starts would also help you quickly get onboard to develop your app.


 0



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

PRODUCTS
RingEX
Message
Video
Phone
OPEN ECOSYSTEM
Developer Platform
APIs
Integrated Apps
App Gallery
Developer support
Games and rewards

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