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
OAuth login with RingCentral account
Tags: authentication
Jan 14, 2021 at 10:50am   •   1 replies  •  0 likes
Andrew Schwartz

I've been testing various API calls with my dev account and had no problems with the auth flow. I now have started testing making API calls for a RingCentral business account and the sign in step of auth is failing, saying phone number and password don't match. However, I'm able to log into service.ringcentral.com with the same credentials. Does a RingCentral user need to create a dev account to use the API? Why is the login attempt failing?

1 Answer
answered on Jan 14, 2021 at 3:14pm  

Did you change the app client id and client secret for your production? Also the server must be changed to platform.ringcentral.com/



 1
on Jan 14, 2021 at 5:55pm   •  0 likes

No, I didn't change client ID and client secret. Do I need to change them? My understanding was that client ID and secret were related to my app, but that others could access the database through my app. Am I confused?

So you're saying that instead of platform.devtest.ringcentral.com, I need to change to platform.ringcentral.com? Are these changes that are required after graduating an app?

on Jan 14, 2021 at 6:59pm   •  1 likes

You wrote "I'm able to log into service.ringcentral.com with the same credentials". This meant that you were logging in with a user's credentials in the production account. To use that user's credentials with your app, you need to graduate the app to production, grab the production app client id and client secret and use the production server. Here is how to set the client id and secret in the sample code

RINGCENTRAL_CLIENT_ID= "Your-Production-ClientId"
RINGCENTRAL_CLIENT_SECRET= "Your-Production-ClientSecret"
RINGCENTRAL_SERVER_URL= "https://platform.ringcentral.com"

rcsdk = SDK(RINGCENTRAL_CLIENT_ID, RINGCENTRAL_CLIENT_SECRET, RINGCENTRAL_SERVER_URL)


on Jan 14, 2021 at 9:33pm   •  0 likes

Thank you so much for the detailed answer, that's exactly what I needed to know.



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