Oauth - authorize API

Description
I am trying to integrate zoom in our education website where multpile institutes will have their zoom account. We are using Oauth Authorisation. Here issues lies while generating auth-code with every request, Is there any way to follow the redirects in the backend and get auth code there which can be passed on to generate the token API

Which App Type (OAuth / Chatbot / JWT / Webhook)?
Oauth

Which Endpoint/s?

res.redirect('https://zoom.us/oauth/authorize?response_type=code&client_id=' + clientID + '&redirect_uri=' + redirectURL)

Hi @akashkulkarni796, you do not need to generate an auth code with each request, but rather you need an access token. Access tokens expire in 1 hour, so you will also receive a refresh token which can be used to get a new access token.

Users will only need to authorize your application once, and thus will only need to be redirected once (unless they deauthorize). This URL can be something like https://yourapp.com/callback/zoom/auth which will receive a code query in the URL. Use this code to then request an access token.

Reference our Sample OAuth app to see this flow:

Thank you Michael,
This helped me a lot. Now I am trying to generate code and then token, but if i provide different redirect_uri to for auth and token api it says “invalid Redirect” , So is it necessary to give same redirect URI for both the requests ?

Hey @akashkulkarni796,

Checkout my post here on dynamic redirect urls:

Thanks,
Tommy