Trying to complete the Zoom API OAuth Server to Server Flow. Following this guide: Create a Server-to-Server OAuth App
But I am getting the following response:
data: { reason: 'The application is disabled', error: 'invalid_client' }
Appears active to me:
Authentication request:
let zoomAccessTokenConfig = {
headers: {
Authorization: `Basic ${Buffer.from('yXXXXXXXX:UXXXXXXXXX').toString('base64')}`,
}
}
let zoomAccessTokenResponse = await axios.post('https://zoom.us/oauth/token?grant_type=account_credentials&account_id=oXXXXXXXX', null, zoomAccessTokenConfig)
.then(response => {
console.log('response');
console.log(response);
return response?.Access_token;
})
Hi @newcollar
Welcome to our Community and thanks for reaching out to the Zoom Developer Forum!
I see that you are having trouble authenticating with the Server to Server OAuth app, here is a link to a guide on How to use Server-to-Server OAuth with postman
How to use our Server-to-Server OAuth with Postman?
As some of you might be aware of, our JWT app is being deprecated by June 2023 and we encourage you to migrate to the newly introduced Server-to-Server OAuth App
That being said, here is a quick and simple guide on how to use or new app with Postman
As stated in our documentation here:
This new app type facilitates OAuth-authenticated requests between servers without end-user involvement. And this grant type enable your private server a…
Hope this helps,
Elisa
harry2
(Harry)
July 26, 2022, 7:49pm
3
I have the same issue and I have set it up correctly before…
Hey @harry2
Are you still having issues with your Server to Server OAuth app?
Please let me know and I can help you figure out what might be going on.
Cheers,
Elisa
harry2
(Harry)
July 29, 2022, 9:38pm
5
yes. i got the same error as the OP did
data: { reason: 'The application is disabled', error: 'invalid_client' }
Hey @harry2
Could you please refer to this post:
After some debugging together, we figured it out @beirne !!!
Here are some steps to debug and fix this issue if you are getting the same error
Make sure that you have the right permissions enabled in your account to be able to user the Server-to-Server OAuth app, you can do so in the Web Portal, by going to User Management > Roles > Role Settings > Advanced features (this can only be done by an Administrator or the Owner of the account)
[Screen Shot 2022-07-22 at 1.13.27 PM]
Make sure tha…
This might be the root cause of your issue.
Make sure that your Server to Server App is activated and you have all the permissions and settings enable in your account
system
(system)
Closed
August 29, 2022, 7:48am
7
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.