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

  • 1
  • Question
  • Updated 4 weeks ago
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 .
Photo of Jordan Katz

Jordan Katz

  • 70 Points

Posted 1 month ago

  • 1
Photo of Phong Vu

Phong Vu, Devangelist

  • 2,938 Points 2k badge 2x thumb
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
Photo of Tyler Long

Tyler Long, Official Rep

  • 7,008 Points 5k badge 2x thumb
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/