Skip to content

Utility script to generate a Zoom Server-to-Server Oauth Token and copy to clipboard

License

Notifications You must be signed in to change notification settings

vineeth-krishna-1234/zoom_oauth

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Zoom Server-to-Server (s2s) Oauth Token Generation

The JWT app type will be deprecated in June, 2023. We recommend that you create Server-to-Server OAuth or OAuth apps to replace the functionality of a JWT app in your account. Additionally, if you are using a JWT app type for the Meeting SDK for Web, you should migrate to an SDK app type instead.

The primary goal of this repository is to serve as an example for generating a Zoom Server-to-Server Oauth Token (valid 1hr). Running this project successfully will copy your access_token to the clipboard for quick usage as well as print the scopes associated with the token. Before proceeding, please ensure you've created a Server-to-Server app type in the Zoom Marketplace to gather the required credentials.

Installation

git clone https://github.com/zoom/Server-to-Server-Oauth-Token.git

Setup

  1. Enter project directory

cd Server-to-Server-Oauth-Token

  1. Install project dependencies

npm install

  1. Required environment variables are as follows:

ZOOM_ACCOUNT_ID=xxxxxxxxxxx

ZOOM_CLIENT_ID=xxxxxxxxxxxx

ZOOM_CLIENT_SECRET=xxxxxxxxxxx

These can be found once you create a Server-to-Server app type in https://marketplace.zoom.us/. Upon first run, you will be prompted for these values if they are not already in your environment.

Screen Shot 2022-08-23 at 12 16 51 PM

Usage

node s2s.js

Your Zoom Access Token should now be copied to your clipboard and displayed in the terminal. Printed below your access_token, you'll also see the scopes associated with the token. If you enter incorrect Zoom credentials, delete your .env file and run the script again. All Zoom Server-to-Server tokens are valid for 1 hour. When your token expires, just run the script again to generate a new one!

Need help?

If you're looking for help, try Developer Support or our Developer Forum. Priority support is also available with Premier Developer Support plans.

About

Utility script to generate a Zoom Server-to-Server Oauth Token and copy to clipboard

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%