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
Can we login in Javascript webphone app without reaching Ringcentral Authentication server?
Tags: authentication
Aug 18, 2020 at 4:16am   •   1 replies  •  0 likes
Prakash Kolipaka

We are implementing Web-phone of Ring central for which we have created a sandbox account and added digital line to it.

As we took the reference with the Auth flow from Demo Application, we are supposed are do below steps

1) After entering Client Id, Client Secret and Submitting the form.

2) Login using Phone number & Password of the Console App .3) Once logged in , We need to click a button Authorize .4) Once authorized, We need to confirm the Emergency Address.

The above steps 2, 3, 4 are happening in a different page(urls) which we cannot skip.

The challenge is as we need to implement this in our own web application, we should not have these 2, 3, 4 steps to be happening in other pages.

Is there any way to use Auth Flow without these steps or any inbuilt API which automatically takes care of these.

If not please suggest or guide us the best way to achieve this. As password flow is not allowed to be done from Java-script App.

1 Answer
answered on Aug 18, 2020 at 7:10pm  

Hi Prakash, the only way to skip popup login is to use password grant flow or customize code flow.


For password, we don't have UI for password login now. You can run following js code inside Embeddable'f iframe to test:

 phone.auth.login({username: 'your_phone_number', extension: 'your_extension', password: 'password' })`

And Remember to set Embeddable to use your own app client id and secret. Your RingCentral app need to support password grant flow. You can check it in `developer.ringcentral.com`.

For auth code flow, you can also customize it by passing authorization code to it directly. https://github.com/ringcentral/ringcentral-embeddable/blob/master/docs/customize-authorization.md

BTW, for web app, password grant flow is not recommended. As we need to keep user's credentials safe. So it is not recommended to use it in iframe.


 1



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