News & Announcements User Community Developer Community

Welcome to the RingCentral Community

Please note the community is currently under maintenance and is read-only.

Search
Make sure to review our Terms of Use and Community Guidelines.
  Please note the community is currently under maintenance and is read-only.
Home » Developers
OAU-234:The client is not available for account
Tags: oauth
Dec 19, 2016 at 6:07am   •   2 replies  •  0 likes
elsagecien

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.

2 Answers
answered on Dec 19, 2016 at 4:03pm  
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
answered on Dec 19, 2016 at 9:05am  
Could you please create a Developer Support case for this issue to be investigated? https://developers.ringcentral.com/support.html

 0



A new Community is coming to RingCentral!

Posts are currently read-only as we transition into our new platform.

We thank you for your patience
during this downtime.

Try Workflow Builder

Did you know you can easily automate tasks like responding to SMS, team messages, and more? Plus it's included with RingCentral Video and RingEX plans!

Try RingCentral Workflow Builder

PRODUCTS
RingEX
Message
Video
Phone
OPEN ECOSYSTEM
Developer Platform
APIs
Integrated Apps
App Gallery
Developer support
Games and rewards

RESOURCES
Resource center
Blog
Product Releases
Accessibility
QUICK LINKS
App Download
RingCentral App login
Admin Portal Login
Contact Sales
© 1999-2024 RingCentral, Inc. All rights reserved. Legal Privacy Notice Site Map Contact Us