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
Finding URL to Request authorization code
Tags: authentication
Jan 25, 2021 at 2:03pm   •   1 replies  •  0 likes
Umair Arshad

I am following this tutorial on creating an app:

https://developers.ringcentral.com/guide/messaging/quick-start#c#


I went into visual studio following the instructions and got the Ring Central API. When I ran the code from the tutorial after filling the fields, I got the following error:

Content: {

"error" : "unauthorized_client",

"errors" : [ {

"errorCode" : "OAU-251",

"message" : "Unauthorized for this grant type"

} ],

"error_description" : "Unauthorized for this grant type"

}


Going through the forums "Unauthorized for this grant type" errors can supposedly be solved by getting 3-legged authentication. Which got me to this page:

https://developers.ringcentral.com/guide/authentication/auth-code-flow


In step 1 I don't understand how I'm meant to generate the URL. Is it copy and pasted from a specific ring central link related to my app? When I look at my sandbox app, the url is generic (https://platform.devtest.ringcentral.com/) and doesn't lead to anywhere. Also if you have any advice to making apps in Ring Central, it would be appreciated.

1 Answer
answered on Jan 25, 2021 at 2:27pm  

What is your app client id? Or is your app type a password flow authentication or OAuth authorization?


 0
on Jan 25, 2021 at 2:48pm   •  0 likes

I do have a client ID (CMnL47khQVSZOOfUT1i76 for sandbox app).

On reflection, my app is not web based or browser based (it is run in visual studio), so it's not OAuth. Not sure what I need to do to authorize my app now.

on Jan 25, 2021 at 3:30pm   •  1 likes

I can't find your app with the client id you provided.

Anyway, if it is a password flow type, just provide the login credentials (username and password) of one of the user in your sandbox.

on Jan 26, 2021 at 9:52am   •  0 likes

Oh sorry, it was CMnL47khQVSZOOfUT1i76Q



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