OAU-234:The client is not available for account

  • 1
  • Problem
  • Updated 1 year ago
  • In Progress
  • (Edited)
Hi everyone,
I am testing the webapp on localhost, I have set the basic authentication code with javascript SDK that was working fine until now.

The error is OAU-234:The client is not available for account returned from , which I haven't found in the RingCentral documentation

RingCentral.SDK.handleAuthRedirect();
my code:

var rcsdk = new RingCentral.SDK({
server: RingCentral.SDK.server.sandbox,
// server: RingCentral.SDK.server.production,
appKey: 'myAppKey',
appSecret: 'myAppSecret'
});

//Get the Platform object
var platform = rcsdk.platform();

function authorize() {

platform.authWindow({
url: platform.authUrl()
})
.then(function(options) {
options.redirectUri = 'http://localhost/ring/';
console.log(JSON.parse(localStorage.getItem("rc-platform")));
return platform.login(options);
})
.then(function(res) {
alert('Login successful\n\n' + JSON.stringify(res.json(), null, 2));
})
.catch(function(e) {
alert('Auth error\n\n' + e.message);
})

}

if(!rcsdk.platform().auth().accessTokenValid()){
authorize();
RingCentral.SDK.handleAuthRedirect();
}

thank you for all the help that you could give.
Photo of Suhorukhov Yuriy

Suhorukhov Yuriy

  • 120 Points 100 badge 2x thumb

Posted 1 year ago

  • 1
Photo of Benjamin Dean

Benjamin Dean

  • 8,602 Points 5k badge 2x thumb
Could you please create a Developer Support case for this issue to be investigated? https://developers.ringcentral.com/support.html
Photo of Anton Nikitin

Anton Nikitin, Official Rep

  • 2,522 Points 2k badge 2x thumb
OAU-234 means that application with "private" scope tries to access API on behalf on some RingCentral user which does not belong to the developer organization. By default all applications which are created through Developer Portal are private i.e. can work in production with the only account - the one linked with developer organization. For ISV apps we can make application public after review.