Skip to main content
Question

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

  • August 20, 2018
  • 2 replies
  • 564 views

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 .

2 replies

PhongVu
Community Manager
Forum|alt.badge.img
  • Community Manager
  • August 21, 2018
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

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/