question

elsagecien3893 avatar image
elsagecien3893 asked anton-nikitin answered

OAU-234:The client is not available for account

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.
topic-default
1 |1000

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

benjamin-dean avatar image
benjamin-dean answered
Could you please create a Developer Support case for this issue to be investigated?  https://developers.ringcentral.com/support.html
1 |1000

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

anton-nikitin avatar image
anton-nikitin answered
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.
1 |1000

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

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.