question

jordan-katz avatar image
jordan-katz asked ·

How to get access token using 2-legged authorization flow for web app in case of ringout api

I m building one web app using the ringout api .I just want to know is there anyway using which i can get the access token without redirecting the application user to ringcentral website from my application .
topic-default
1 |1000 characters needed characters left characters exceeded

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 ·
Hi Jordan,

I still don't fully understand your use case. But if you would like to get the access token without redirecting to RingCentral authorization page then the only choice is to use the password flow authorization for your RingCentral app. With that, you can get the access token from your Web app server code and use e.g. the session to pass the access token to the client side.

+ Phong
Share
1 |1000 characters needed characters left characters exceeded

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

Tyler Liu avatar image
Tyler Liu answered ·
Or you can use a iframe inside a popup modal to do the redirection. So that users don't actually leave your website at all.

Live demo:  https://tylerlong.github.io/wgc/
Share
1 |1000 characters needed characters left characters exceeded

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

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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