403 response from OAuth token request

Hi, dear Zoom community

I am receiving 403 response when trying to get an OAuth token. I have whitelisted both server URL and redirect URL in the app.

Here is the code which is doing post request to the Zoom server

client.post()
            .uri {
                it.path("https://zoom.us/oauth/token")
                    .queryParam("grant_type", "authorization_code")
                    .queryParam("code", code)
                    .queryParam("redirect_uri", "http://***/zoom")
                    .build()
            }
            .header("Authorization", "Basic $id:$secret")
            .header("Content-Type", "application/json")
            .retrieve()
            .bodyToMono(Any::class.java)
            .block()

Here is the error which I get

org.springframework.web.reactive.function.client.WebClientResponseException$Forbidden: 403 Forbidden from POST https://zoom.us/oauth/token?grant_type=authorization_code&code=***&redirect_uri=http%253A%252F%252F***%252F%2523%252Fzoom

I would be grateful for any advice

Hi @vasia,

Happy to help! Did you also whitelist the development and production url?

Gianni

Hi @gianni.zoom,

Yes, I whitelisted the domain, all subdomains, and full URLs which can be related to this, but nothing helps, still 403

Hey @vasia,

When you encounter the 403 response, are you seeing a response body as well containing an error message? If so, can you share that response body here?

Thanks,
Max

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.