Oauth2 code exchange return 403 for different servers

Description
I run my app in Docker container during app development and use port forwarding to catch OAuth redirects. Everything works fine on my laptop, but when I deploy SAME container on a server I receive HTML with 403 Forbidden.
Server IP 176.112.195.11

Error
Get 403 Forbidden on token exchange

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

Which Endpoint/s?
<ZOOM_DOMAIN>/oauth/token

How To Reproduce (If applicable)
Steps to reproduce the behavior:

  1. Follow the url
    https://zoom.us/oauth/authorize?client_id=6yhTLjfJR3CmeF4cUjncmA&redirect_uri=https%3A%2F%2Fskozlov.dev%2Fzoom%2Fauth&response_type=code&state=1%3A1bDHR51pc088TOsSOysneLeRTcS%3A1588167519%3A5b7995d6ff584f045a8ff25f2edd73673fcfa4fee25ecd47815f604bae148041

Additional context

OAuth2 client for Go /x/oauth2

client_id: 6yhTLjfJR3CmeF4cUjncmA
redirect_url: https://skozlov.dev/zoom/auth
code: BN2D4encQA_QLmej305SWu_Q1gg6nb14g
auth_url: <ZOOM_DOMAIN>/oauth/authorize
token: <ZOOM_DOMAIN>/oauth/token

PS I use <ZOOM_DOMAIN> placeholder since I’m newbie here

UPDATE

I’ve changed VPS provider and now everything works fine.

1 Like

Happy to hear you got it working! :slight_smile:

-Tommy