When running the zoom sdk demo, I always get “auth sdk failed”.
Which version?
latest version download from zoom github
To Reproduce(If applicable)
Steps to reproduce the behavior:
compile zoom sdk demo
start sdk_demo_v2.exe
I am not sure what to input here, so I click “setdomain” directly
I already create an JWT app from maketplace, so I paste its JWT token to it.
click auth
get “auth sdk failed”.
Device (please complete the following information):
OS: Windows 10
other info
The zoom sdk guide said after click SetDomain, the next step will " Then in the following screen, you will be asked to enter your SDK keys & secrets .". But in my test, it ask me to input “sdk JWT token”. I don’t know why.
Sdk version: (version: v5.2.42037.1112)
OS: Win 10
I created jwt app on marketplace. Generate jwt token and use it in sdk app runned from code. And result was the same as described before (error message “auth sdk failed”). I tried to create sdk app as well and generate jwt token on jwt.io with settings:
{
“appKey”: “xxxxxxxxxxxxxxxxxxxxxx”,
“iat”: 1609913345,
“exp”: 1609993345, (less than 2 days after iat)
“tokenExp”: 1609999345 (more than 1/2 hour after exp)
}
But same result (message “auth sdk failed”).
I solved my question. My “iat” was pointing to future. And iat is in short the timestamp symbolized time of token creation. It should not point to the future.
The default placeholder text “https://zoom.us” should work for the domain on the screen in your screenshot. This is just to specify what network domain you would like to use. For example, if you were in the UK you could do “https://zoom.uk” so that you connect to servers closer to you.
For the JWT issue: Are you pasting the JWT directly from the JWT tile of the Zoom Marketplace? If so, this will cause the error. The JWT provided in the JWT tile is for the Zoom API, not the SDK’s. To authenticate the SDK, you have to make a JWT out of your SDK Key and SDK Secret.
No matter what I tried on http://jwt.io/ - it always fail with “Auth SDK failed”.
can you please provide a step by step instructions on how to generate the correct token?
Copy your SDK Key from the Zoom Marketplace (in this example, I will use 1234ABC for the key) and paste it inside the quotes where it says string, next to appKey in the payload.
Paste this to replace the 0 next to both exp and tokenExp in the payload. (These don’t have to be the same value, and they also don’t have to be a date 1 day from now, this is just for example):
So now your payload should look like this:
You can hover over these numbers and it should show you the date in readable format:
for other readers - please notice that the quotation marks in the payload are wrong - you’ll need to use the regular/neutral quotation marks instead of the curved/typographic quotation marks
more details about the difference are here - How & When to Use Quotation Marks | Study.com.
seems like this forum is preventing us from using the regular/neutral one. kind of weird for a technical forum
Awesome! I am happy to hear it helps, and yes it is a bummer the forum changes the quotes .
As for your error, the error code 0 actually means “No error”.
Hello Michael,
Is that a change you´ve made in the demo where instead of App Key // App Secret screen, you´ve changed to JWT screen to authenticate the SDK ?
Because I´m having the same behavior, in your guide it says after domain screen, I should inform App Key // App Secret on the screen, but I´m getting the JWT screen instead.
Yes, that guide is outdated unfortunately. We will work to get that updated as soon as possible.
The behavior of the demo app has changed since then. Despite recommending developers to use JWT’s instead of SDK key’s and secrets, many developers would use key’s and secrets which introduces security vulnerabilities. We do not encourage developers to authenticate the SDK using a key and secret anymore. The demo applications have been updated to reflect this ongoing security effort. If you run into issues creating a JWT, please let me know and I can assist there
@Michael_Condon
run android zoom sdk(zoom-sdk-android-5.7.1.1267) show below info
2038-01-17 02:53:47.777 23317-23317/us.zoom.sdkexample W/AndroidKeysetManager: keyset not found, will generate a new one
java.io.FileNotFoundException: can’t read keyset; the pref value androidx_security_crypto_encrypted_prefs_key_keyset does not exist
at com.google.crypto.tink.integration.android.SharedPrefKeysetReader.readPref(SharedPrefKeysetReader.java:71)
at com.google.crypto.tink.integration.android.SharedPrefKeysetReader.readEncrypted(SharedPrefKeysetReader.java:89)
at com.google.crypto.tink.KeysetHandle.read(KeysetHandle.java:105)
at com.google.crypto.tink.integration.android.AndroidKeysetManager$Builder.read(AndroidKeysetManager.java:311)
at com.google.crypto.tink.integration.android.AndroidKeysetManager$Builder.readOrGenerateNewKeyset(AndroidKeysetManager.java:287)
at com.google.crypto.tink.integration.android.AndroidKeysetManager$Builder.build(AndroidKeysetManager.java:238)
at com.zipow.videobox.util.ZMEncryptedSharedPreferences.a(ZMEncryptedSharedPreferences.java:1169)
at com.zipow.videobox.util.PreferenceUtil.getSharedPreferences(PreferenceUtil.java:336)
at com.zipow.videobox.util.PreferenceUtil.readStringValue(PreferenceUtil.java:431)
at org.webrtc.voiceengine.VoiceEngineCompat.selectAudioDeviceAPIType(VoiceEngineCompat.java:221)
at org.webrtc.voiceengine.VoiceEngineCompat.isBluetoothScoSupported(VoiceEngineCompat.java:149)
at com.zipow.videobox.VideoBoxApplication.onSDKCreated(VideoBoxApplication.java:2224)
at com.zipow.videobox.VideoBoxApplication.initializeForSDK(VideoBoxApplication.java:2203)
at us.zoom.sdk.ZoomSDK.initialize(ZoomSDK.java:394)
at us.zoom.sdksample.initsdk.InitAuthSDKHelper.initSDK(InitAuthSDKHelper.java:47)
at us.zoom.sdksample.ui.InitAuthSDKActivity.onCreate(InitAuthSDKActivity.java:87)
at android.app.Activity.performCreate(Activity.java:7037)
at android.app.Activity.performCreate(Activity.java:7028)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1215)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2771)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2903)
at android.app.ActivityThread.-wrap11(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1610)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:6602)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:453)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:821)