Description
Getting Auth Error 4 from MeetingSDK
Which Windows Meeting SDK version?
v6.1.1.41755
To Reproduce(If applicable)
Steps to reproduce the behavior:
- Go to Github tanchunsiong/Zoom_MeetingSDK_Windows_RawDataDemos @chunsiong.zoom
Download and compile ChatDemo Code. - Create JWT Token using client id and secret
import jwt
import time
import os
def generate_signature(key, secret):
iat = int(time.time()) - 30
exp = iat + 60 * 60 * 2
payload = {
"appKey": key,
"iat": iat,
"exp": exp,
"tokenExp": exp,
}
headers = {
"alg": "HS256",
"typ": "JWT"
}
print(payload)
sdk_jwt = jwt.encode(payload, secret, algorithm="HS256", headers=headers)
return sdk_jwt
zoom_key = ''
zoom_secret = ''
if zoom_key and zoom_secret:
signature = generate_signature(zoom_key, zoom_secret)
print(signature)
else:
print("Zoom credentials not found in environment variables.")
- Run Chatdemo.exe from debug folder and enter JWT key and meeting number
- CaptionDemo\x64\Debug>CaptionDemo.exe
Trying to find meeting parameters from config.json.
Didn’t find config.json file.
SDK JWT:<JWT>
Meeting Number:<meeting number>
Passcode:
Video Source (file path or URL):
No video source provided, use the default video source: Big_Buck_Bunny_1080_10s_1MB.mp4.
SDK Initialized.
CreateNetworkConnectionHelper created.
NetworkConnectionHandler registered. Detecting proxy.
onProxyDetectComplete
AuthService created.
AuthServiceEventListener added.
Auth call started, auth in progress.
Auth failed: 4
Device (please complete the following information):
- OS: [e.g. Windows 11 Dev Environment]