How to generate access-token without authorization_code

Actually, I am integrating zoom meeting SDK in react native && generating token by this API “https://zoom.us/oauth/token?grant_type=client_credentials&code={client_id}&redirect_uri=https://oauth/callback”. For this , I need code that i am getting after allowing a popup on zoom app side.
Actually, I don’t want to allow permission popup from zoom app. I want to allow do all permission allow from my server app.
Is any alternative to generate access_token without code ?

@adityaXenelsoft

Hi Aditya,

If you want to generate an access token without requiring user consent via the Zoom permission popup, you’ll need to create a Server-to-Server OAuth app instead of using the standard OAuth flow.

Steps to achieve this:

  1. Create a Server-to-Server OAuth App:
  • Go to the Zoom App Marketplace
  • Navigate to “Develop” > “Build App”
  • Choose Server-to-Server OAuth instead of General App.
  • This type of app allows your server to get access tokens using the client_credentials grant type without any user consent.
  1. Generate Access Token Using client_credentials:
    Once the Server-to-Server OAuth app is created, use the following API request to obtain an access token without user interaction:

bash

CopyEdit

curl -X POST https://zoom.us/oauth/token \
-H "Authorization: Basic base64(client_id:client_secret)" \
-H "Content-Type: application/x-www-form-urlencoded" \
-d "grant_type=client_credentials"

This approach does not require any authorization code or redirect URI and can be executed directly from your backend.

Important Consideration:

  • A Server-to-Server OAuth app will only work for your own Zoom account (your organization’s resources).
  • If you intend to provide access for external users, you must create a General App and follow the OAuth 2.0 authorization flow, which requires user consent.

Let me know if you need further clarification!

Thanks for reply @freelancer.nak

Access-token generated using grant_type:client_credentials , and Using this access-token for generating ZAK token is
{ “code”: 124,
“message”: “This API does not support client credentials for authorization.”
}

After searching above issue on forum , i resolved the issue by passing grant_type:account_credentials,
account_id:uUithhyrQFW,
Now , i can generate ZAK token,but problem is that i am not able to join meeting by this ZAK and generating JWT from " meetingsdk-auth-endpoint-sample " repo ,
Error : {
“method”: “join”,
“status”: false,
“result”: “Invalid signature.”,
“errorCode”: 3712,
“errorMessage”: “Signature is invalid.”
}

I have also verify JWT from JWT.io , signature verified means my jwt is good.

Please, guide me how to integrate meeting sdk in react and how to join and start meeting for server-to-server OAuth authorization .

1 Like