Skip to main content

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

' + JSON.stringify(res.json(), null, 2));
})
.catch(function(e) {
alert('Auth error

' + e.message);
})

}


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


thank you for all the help that you could give.

Could you please create a Developer Support case for this issue to be investigated? https://developers.ringcentral.com/support.html
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.

Reply