Prakash Kolipaka avatar image
Prakash Kolipaka asked Prakash Kolipaka commented

Can we login in Javascript webphone app without reaching Ringcentral Authentication server?

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.

1597748683898.png (20.7 KiB)
1597748731915.png (25.8 KiB)
1597748780713.png (31.1 KiB)
1597748867618.png (20.7 KiB)
1 |3000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

1 Answer

Embbnux Ji avatar image
Embbnux Ji answered Prakash Kolipaka commented

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 ``.

For auth code flow, you can also customize it by passing authorization code to it directly.

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 comment
1 |3000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Prakash Kolipaka avatar image Prakash Kolipaka commented ·

Hi @Embbnux Ji,

As we are trying to incorporate this in our existing JavaScript App, you meant that without popup sign in is not allowed. Web page app are allowed only get authorized from Ring central server only correct me if I'm wrong.

One more question is, Can we do the Auth Flow steps using JAVA API and use the response data from the API call to complete rest of the flow(making a call) from Javascript Webapp.

Please help me to get out from this confusion or suggest me the best way to make the Webphone application(Javascript).

0 Likes 0 ·

Developer sandbox tools

Using the RingCentral Phone for Desktop, you can dial or receive test calls, send and receive test SMS or Fax messages in your sandbox environment.

Download RingCentral Phone for Desktop:

Tip: switch to the "sandbox mode" before logging in the app:

  • On MacOS: press "fn + command + f2" keys
  • On Windows: press "Ctrl + F2" keys