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
How can I login the user inside the widget once I have the access token?
Tags: sdk
Nov 26, 2018 at 6:17am   •   4 replies  •  0 likes
aditi-test

Hi,

I am new in this segment and looking for your help to implement login flow in which user will login only once and then our web server will catch the access_token. Now I want to know that do we have a method in which I can login the user in the widget using the saved access token. Please help

4 Answers
answered on Dec 4, 2019 at 11:31am  

I've been working on a similar situation, I think. I've gotten the OAuth flow working through the PHP SDK, but when I append my sandbox appKey and sandbox appServer to the ringcentral-embeddable iframe src, it ends up redirecting to https://ringcentral.github.io/ringcentral-embeddable/redirect.html#error=login_required


 0
answered on Jul 18, 2019 at 8:30pm  

Hi, @Oleg In in-page login, we are reusing alive session in RingCentral login page. If user login in somewhere of current browser, when user goto widget with in-page login, widget will redirect to RingCentral login page. If session is still alive, RingCentral login page will redirect back with access token. We require app key for using same alive session. You don't need to pass access token to widget.

For error "invalid client", can you check your appKey. It is caused by wrong appKey. Is you app id in production environment. If your app id in on sandbox, you need to pass appServer "https://platform.devtest.ringcentral.com"


 0
answered on Jul 18, 2019 at 5:39am  

Hi,

I also tried to implement In-page login mode. I was able to get access_token(and saved it in DB), but I don't understand what should I pass instead of "your_app_key". I tried to pass there access_token, clientId and etc, but I always got "error" : "invalid_client"

https://ringcentral.github.io/ringcentral-embeddable/adapter.js?authMode=sso&appKey=your_app_key

Could you please explain what should I pass into appKey?


 0
answered on Nov 27, 2018 at 1:29am  
Hi Embbnux,
thanks for your reply, I have tried it, but it's giving me error "No Auth Code". I tried a lot but, I am not able to find a solution for the same. 

 0
answered on Nov 26, 2018 at 5:24pm  
Hi, @aditi test you can try In-page login mode https://github.com/ringcentral/ringcentral-embeddable/blob/master/docs/sso-login-mode.md When user had logged with RingCentral OAuth page, it would auto logged in the widget.

 0
on Jul 30, 2022 at 3:31am   •  0 likes

@Embbnux Ji redirect page is not responsive ............can you provide another link



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