question

Ashlesha Shirodkar avatar image
Ashlesha Shirodkar asked ·

Promoted to production .. but getting authorization error

I see we are promoted to production. Do i need to set up credentials using Setup Wizard for our main account the same way i did for sandbox account?

api sms
1 |1000 characters needed characters left characters exceeded

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 answered ·

I don't know what is the "Setup Wizard" you mentioned above. But here is the fundamental requirement.

Use your app credentials (app client id and client secret) for you sandbox when you test it in sandbox environment.

Use your app credentials (app client id and client secret) for you production when you run your app in production environment.

screen-shot-2021-04-28-at-83427-am.png


If you use a RingCentral SDK, e.g. the RingCentral JS SDK, here is the example how to specify the app client id and secret

// sandbox server: "https://platform.devtest.ringcentrsl.com"
// production server: "https://platform.ringcentrsl.com"

var rcsdk = new RingCentral({ server: RINGCENTRAL_SERVER, clientId: RINGCENTRAL_CLIENTID, clientSecret: RINGCENTRAL_CLIENTSECRET });

1 comment
1 |1000 characters needed characters left characters exceeded

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

I am using the Production Credentials for "GSMLSTEXT" app. I am not sure about the password. I tried using my account password as well as Sandbox password. I get same error

I still get following error

error" : "invalid_grant",

"errors" : [ {

"errorCode" : "OAU-140",

"message" : "Invalid resource owner credentials"

} ],

"error_description" : "Invalid resource owner credentials"

0 Likes 0 ·
Ashlesha Shirodkar avatar image
Ashlesha Shirodkar answered ·

I am now using the Production Credentials . The password is same as the one is used for Sandbox

I still get following error

error" : "invalid_grant",

"errors" : [ {

"errorCode" : "OAU-140",

"message" : "Invalid resource owner credentials"

} ],

"error_description" : "Invalid resource owner credentials"

8 comments
1 |1000 characters needed characters left characters exceeded

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

I am still waiting for reply. I am unable to use Production Credentials for "GSMLSTEXT' app

0 Likes 0 ·
Phong Vu avatar image Phong Vu ♦♦ Ashlesha Shirodkar ·

First you wrote "I am not sure about the password", then you wrote "The password is same as the one is used for Sandbox"

The error is clearly said "Invalid resource owner credentials"

How are you sure about your password is correct?

Can you login your production account service web with that user credentials? If you can, use the exact username, extension number and password in your app and it must work. Otherwise, reset your password.

0 Likes 0 ·

I am able to login production account service web with username as my email id ashlesha@gsmls.com and the password that i have set.

However when i do it through API

RequestBody formBody = new FormBody.Builder()

.add("grant_type", "password")

.add("username", objCredentials.getUsername())

.add("extension", objCredentials.getExtension())

.add("password", objCredentials.getPassword())

.build();

The user name i set is +19738981900 . The one i see in the Production Enviornment and the same password and extension as 101. For which i get

Invalid resource owner credentials error

0 Likes 0 ·
Show more comments

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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