Description
Created oauth app.
Added uri http://localhost:4000/oauth-callback
to both Redirect URL for OAuth and Whitelist URLs.
When I click on install everything works and I’m able to get the token (href="https://zoom.us/oauth/authorize?response_type=code&client_id=yhqWp3x0RKqxPZscTvv34w&redirect_uri=http%3A%2F%2Flocalhost%3A4000%2Foauth-callback"
)
However, if in the browser I go to localhost:4000, I get this uri:
https://zoom.us/oauth/signin?_rnd=1625052669538&client_id=yhqWp3x0RKqxPZscTvv34w&redirect_uri=http%3A%2F%2Flocalhost%3A4000%2Foauth-callback%0A&response_type=code
With this message: Invalid redirect url (4,700)
Notice that at the end of the redirect_uri
parameter, after oauth-callback
a line feed ‘%0A’ has been added somehow, and that’s the reason it doesn’t work. If I manually delete that line feed and press enter it will take me to the installation/authorization page.
Here’s my code: zoom.js · GitHub
Error
Invalid redirect url (4,700)
Which App Type (OAuth / Chatbot / JWT / Webhook)?
OAuth