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