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.

oauth
1 |3000

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 |3000

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 |3000

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

Developer sandbox tools

Using the RingCentral Phone for Desktop, you can dial or receive test calls, send and receive test SMS or Fax messages in your sandbox environment.

Download RingCentral Phone for Desktop:

Tip: switch to the "sandbox mode" before logging in the app:

  • On MacOS: press "fn + command + f2" keys
  • On Windows: press "Ctrl + F2" keys