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
SSO, embeddable widget, and login-required
Tags: sdk
Dec 4, 2019 at 12:06pm   •   7 replies  •  0 likes
Catie Sessions

I'm working on using SSO with the embeddable widget. So far, I've gotten the OAuth process working through the PHP SDK, and can get an access_token, etc. for my sandbox application. But when I then load an Iframe with the embeddable app.html URL + authMode=sso + my sandbox appKey + appServer = https://platform.devtest.ringcentral.com, everything just redirects to https://ringcentral.github.io/ringcentral-embeddable/redirect.html#error=login_required

The application is not published, Platform Type = Browser-based, and has two OAuth Redirect URIs configured -- my callback endpoint for the OAuth process on the server, and the default embeddable redirect URI https://ringcentral.github.io/ringcentral-embeddable/redirect.html

Any ideas?

7 Answers
answered on Feb 16, 2020 at 7:05pm  

Hi Catie, the feature is failed by security upgrading in RingCentral login page.

For now, I think we can build a RingCentral API proxy server, and set appServer of the Embeddable to this proxy server. The Embeddable can get RingCentral token, refresh token by this server and request RingCentral API by this proxy server. And the proxy server can share RingCentral token with your RingCentral backend app.


 0
answered on Feb 18, 2020 at 10:29am  

Thanks for the update. What do we need to do on our end?


 0
answered on Feb 7, 2020 at 11:35am  

Sorry, any updates on this?


 0
answered on Dec 11, 2019 at 9:08pm  

Hi Catie, just tried it. The feature doesn't work now. Seem the login page upgraded and this feature is not supported now.

Will investigate more and keep you updated.


 0
answered on Dec 11, 2019 at 1:24pm  

That Single Sign-on setting seems different than what I'm trying to accomplish? Perhaps I should start from the beginning.

We have an existing web application, we'd like to add the RingCentral Embeddable widget to it. We'd like to have the backend server and Embeddable both use the same authentication state.

Right now, we're using the PHP SDK to implement OAuth, and capture the authentication code from the callback, exchange it for a token, and store the token. This part follows the process laid out in

https://developers.ringcentral.com/guide/authentication/quick-start/authorization-flow/php

A later part of the application adds the Embeddable to the page using an iframe, using our appKey and the sandbox appServer in the source URL.

It mostly works, if I remove the authMode=sso parameter. But it also doesn't seem to share the authentication state between the two. After the authentication token expires normally, the server side can refresh using the refresh token, but the user has to sign in again through Embeddable separately.

Am I even on the right track for this?


 0
answered on Dec 10, 2019 at 2:28pm  

 0
answered on Dec 4, 2019 at 2:06pm  

Where did you find the instruction to put the authMode, client id etc.?

Can you just specify the configurations as shown in this page and log in. Hold on the SSO login for a while and just login with the user's phone number and password. If it works, then let's tackle the SSO later as you will need to enable SSO on your RingCentral account.



 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