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
Embedded Voice oauth error
Tags: getting started
Jun 20, 2018 at 2:14am   •   4 replies  •  0 likes
nick-buchanan

Following yesterdays webinar on Embedded Voice, I am trying to integrate this into our CRM. I have created test page with a copy of the example code, but i keep receiving an oauth error. Please can someone advise? Thanks in advance.


include code:

<script>

(function() {


var rcs = document.createElement("script");

rcs.src = "https://ringcentral.github.io/ringcentral-embeddable-voice/adapter.js?appKey=itC6A58EQYS0ae-w480bCg&...;

var rcs0 = document.getElementsByTagName("script")[0];

rcs0.parentNode.insertBefore(rcs, rcs0);

})();

</script>


the error code I receive is:

oauth error: Error: invalid_request

at o (app.js:1)

at t.<anonymous> (app.js:1)

at r (app.js:1)

at Generator._invoke (app.js:1)

at Generator.e.(ringcentral.github.io/ringcentral-embeddable-voice/anonymous function) [as next] (https://ringcentral.github.io/ringcentral-embeddable-voice/app.js:1:1191401)

at r (app.js:1)

at app.js:1

at new Promise (<anonymous>)

at new t (app.js:1)

at t.<anonymous> (app.js:1)

(anonymous) @ app.js:1

r @ app.js:1

(anonymous) @ app.js:1

e.(anonymous function) @ app.js:1

r @ app.js:1

(anonymous) @ app.js:1

t @ app.js:1

(anonymous) @ app.js:1

e @ app.js:1

r @ app.js:1

(anonymous) @ app.js:1

r @ app.js:1

(anonymous) @ app.js:1

e.(anonymous function) @ app.js:1

r @ app.js:1

(anonymous) @ app.js:1

t @ app.js:1

(anonymous) @ app.js:1

e @ app.js:1

(anonymous) @ app.js:1

r @ app.js:1

(anonymous) @ app.js:1

e.(anonymous function) @ app.js:1

r @ app.js:1

(anonymous) @ app.js:1

t @ app.js:1

(anonymous) @ app.js:1

(anonymous) @ app.js:1

postMessage (async)

window.oAuthCallback @ proxy.js:1

(anonymous) @ ringcentral.github.io/ringcentral-embeddable-voice/redirect.js:1

4 Answers
answered on Jun 20, 2018 at 6:00pm  
Hi, I am having problem with implicit grant flow too. 

Nick, could you please inspect the network in Chrome devtools and post the network response here?

I want to confirm that we are talking about the same issue.

 0
answered on Jun 20, 2018 at 2:27am  
Hi



 0
answered on Jun 20, 2018 at 2:26am  
If you just want to test the widget, you can remove configure params as following:

  (function() {
    var rcs = document.createElement("script");
    rcs.src = "https://ringcentral.github.io/ringcentral-embeddable-voice/adapter.js";
    var rcs0 = document.getElementsByTagName("script")[0];
    rcs0.parentNode.insertBefore(rcs, rcs0);
  })();

It will use default config params.

 0
answered on Jun 20, 2018 at 2:24am  
Hi, Nick. From the error message, it seems that you provide a valid 'appKey'. Would you please check the appKey in RingCentral Developer Website. I also try with your appKey.

Got following message from RingCentral API:

{
  "error" : "invalid_client",
  "error_description" : "Invalid client: itC6A58EQYS0ae-w480bCg",
  "errors" : [ {
    "errorCode" : "OAU-153",
    "message" : "Invalid client: itC6A58EQYS0ae-w480bCg",
    "parameters" : [ {
      "parameterName" : "client_id",
      "parameterValue" : "itC6A58EQYS0ae-w480bCg"
    } ]
  } ]
}


 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