question

MR avatar image
MR asked Embbnux Ji answered

How can I login to ringcentral embeddable widget using access token?

How can I login to ringcentral embeddable widget using access token?

embeddable
1 |3000

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

Phong Vu avatar image
Phong Vu answered

I don't understand what you meant by saying using "access token". How do you get the access token for using it?

Anyway, the RingCentral embeddable is a public app and the app authentication is authorization code flow. You can only login with a user name and password.

1 |3000

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

MR avatar image
MR answered

In our application we do get access token using /restapi/oauth/authorize and store access token in our DB for invoking RingCentral APIs throughout our application. Therefore, We are trying to see if we can pass access to token to Ringcentral embeddable widget so we can avoid second login by our users. It seems there is an option through which we can send authorizationCode to ringcentral-embeddable/adapter.js but it is not working.

Please refer below one and let us know if our application can automictically login to embeddable widget using access token that we have in our DB

https://github.com/ringcentral/ringcentral-embeddable/blob/master/docs/customize-authorization.md

1 |3000

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

Embbnux Ji avatar image
Embbnux Ji answered

HI @Mangarao Bezawada You can only send auth code (not be used previously) to the embeddable. If you have exchanged code in your app, you can't pass the code to the embeddable.

If your app is server side app, we recommend you use RingCentral account (company) level API in server side. For example: https://developers.ringcentral.com/api-reference/Call-Log/readCompanyCallLog
So for setup server side app, only RingCentral admin user need to authorize and setup in your app once. With account level api, you can get all the account's users's data and events in the server side.

And for Embeddable, it uses extension (user) level API. Everyone who uses it need to login.

1 |3000

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

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