Question

Authenticate Error (OAU-140), C#

  • 20 April 2020
  • 3 replies
  • 1889 views

After walking through the setup process to setup a sandbox account and creating a sample application using API examples provided I am unable to get past the authentication. Have tried both sandbox and production account credentials along with multiple password resets on both accounts. Code below;

string RINGCENTRAL_CLIENTID = "myClientID<used copy/paste>";
string RINGCENTRAL_CLIENTSECRET = "myClientSecrete<used copy/paste>";

string RINGCENTRAL_USERNAME = @"sandbox/prod phone #<used copy/paste>";
string RINGCENTRAL_PASSWORD = "getyourownpassword<used copy/paste>";
string RINGCENTRAL_EXTENSION = "101";
bool RINGCENTRAL_PRODUCTION = false;
RestClient restClient;
restClient = new RestClient(RINGCENTRAL_CLIENTID, RINGCENTRAL_CLIENTSECRET, RINGCENTRAL_PRODUCTION);
Task.Run(async () => await restClient.Authorize(RINGCENTRAL_USERNAME, RINGCENTRAL_EXTENSION, RINGCENTRAL_PASSWORD)).Wait();

I suspect the issue might be in my configuration within the app or site settings, but after having spent enough time digging, I am at a loss.


3 replies

Userlevel 1

I cannot think of other reasons than somehow you provided wrong login credentials. To make sure if you can login your app with your sandbox credentials, first check if you can login this site https://service.devtest.ringcentral.com. Then use the exact credentials to login your app.

Indeed I am able to login with the same credentials into your linked site. Again, I am only using copy paste to make sure there isn't a single typo just as I did for the login. Could there be a service on ringcentral's part? or the faulty API?

Logged in without the extension to the web portal, but specified the extension with the API call as per my code in my original post.

Reply