jovy
(Jovy)
February 9, 2022, 11:15am
1
Hi There,
we are integrating zoom authentication in our website.
we have create OAuth app from marketplace
after successful authentication, user will redirected to
https://glass.mirobotic.tech/authentication/zoom?code=vy5yl8hHwt_OcVP5NTIQ3OGmdNk3ZSZ6w
and using this code we are trying to get access_token but we are getting error
{
"reason": "Invalid authorization code",
"error": "invalid_grant"
}
below is code by which are making request to get access_token from our server
import requests
url = "https://zoom.us/oauth/token"
payload = "grant_type=authorization_code&code=vy5yl8hHwt_OcVP5NTIQ3OGmdNk3ZSZ6w&redirect_uri=https%3A%2F%2Fglass.mirobotic.tech%2Fauthentication%2Fzoom"
headers = {
'authorization': "Basic ***
'content-type': "application/x-www-form-urlencoded",
'cache-control': "no-cache",
'postman-token': "2a1e7f38-4ffb-7387-a1af-bfbec5e49203"
}
response = requests.request("POST", url, data=payload, headers=headers)
print(response.text)
please help on this
gianni.zoom
(OOO 11/1 - 11/8)
February 9, 2022, 6:01pm
2
Hi,
@jovy , is your redirect uri on the “allow list” in your app credentials page?
And authorization is “Basic client_id:client_secret” ?
Thank you,
Gianni
1 Like
OmarM
(Omar)
February 18, 2022, 3:30am
3
Hi @gianni.zoom . Thank you for the advice. I am not the original poster, but thanks to your first suggestion, I was able to get the OAuth token using postman!
1 Like
gianni.zoom
(OOO 11/1 - 11/8)
February 18, 2022, 4:55pm
4
So happy to hear that @OmarM !
jovy
(Jovy)
February 25, 2022, 11:14am
5
Hi @gianni.zoom
After adding redirect url into allow list, its working for me,
thanks for your help!
1 Like
gianni.zoom
(OOO 11/1 - 11/8)
February 25, 2022, 4:02pm
6
Okay great @jovy ! Happy to hear it!
tomeriko
(Tom)
February 27, 2022, 9:44am
7
Could someone share instructions for POSTMAN? I’m also getting:
{
“reason”: “Invalid authorization code”,
“error”: “invalid_grant”
}
system
(system)
Closed
April 7, 2022, 1:10am
9
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.