mehrshad
(Mehrshad)
June 21, 2023, 5:30am
1
Meeting SDK Type and Version
iOS Meeting SDK version 5.14.11.8690
Description
The iOS SDK can’t authenticate when using the JWT token (instead of SDK KEY and SECRET).
NOTE: We have an MeetingS SDK app for Zoom
guard let authorizationService = MobileRTC.shared().getAuthService() else {
return
}
authorizationService.delegate = self
authorizationService.jwtToken = jwtToken
authorizationService.sdkAuth()
I am using SDK KEY and SECRET
to generate the JTW token and already validated the token several times and it seems fine, the SDK also doesn’t complain about that.
Error?
MobileRTCAuthError: MobileRTCAuthError(rawValue: 4)
From Zoom documentation: MobileRTCAuthError_AccountNotEnableSDK 3025 Your account does not support SDK
How To Reproduce
Steps to reproduce the behavior including:
*1. Authentication the SDK with JWT
2. Error MobileRTCAuthError(rawValue: 4)
from the delegate method
nausher
(Nausher)
June 22, 2023, 9:03am
2
How you are generating JWT token?
mehrshad
(Mehrshad)
June 22, 2023, 9:30am
3
Thanks for your reply, @nausher I attached the BE code where I generate the JWT token in Typescript:
Guide: Meeting SDK Auth
const KJUR = require('jsrsasign')
const iat = Math.round((new Date().getTime() - 30000) / 1000)
const exp = iat + 60 * 60 * 2
const oHeader = { alg: "HS256", typ: "JWT" }
const oPayload = {
sdkKey: process.env.ZOOM_SDK_KEY,
mn: meetingNumber,
role: role, // 0 or 1
iat: iat,
exp: exp,
appKey: process.env.ZOOM_SDK_KEY,
tokenExp: iat + 60 * 60 * 2,
}
const sHeader = JSON.stringify(oHeader)
const sPayload = JSON.stringify(oPayload)
const signature = KJUR.KJUR.jws.JWS.sign(
"HS256",
sHeader,
sPayload,
process.env.ZOOM_SDK_SECRET,
)
mehrshad
(Mehrshad)
June 22, 2023, 9:43am
4
Hi @chunsiong.zoom
Do you have any idea about this issue that I posted?
Thanks in advance
chunsiong.zoom
(Chun Siong (tag me for response))
June 22, 2023, 10:14am
5
The admin might have likely disabled SDK support for the account
mehrshad
(Mehrshad)
June 22, 2023, 10:27am
6
I’m the Admin, but have seen such an option to disable SDK for an app in the marketplace, do you know where this can be found?
chunsiong.zoom
(Chun Siong (tag me for response))
June 22, 2023, 10:34am
7
can you raise a ticket? this might be disabled at the request of the customer, if not could you reach out to your account manager?
mehrshad
(Mehrshad)
June 22, 2023, 10:35am
8
I’ve submitted a ticket and waiting for their response. Thanks for the suggestions
chunsiong.zoom
(Chun Siong (tag me for response))
June 22, 2023, 10:48am
9
could you share the ticket number here? thanks!
1 Like
mehrshad
(Mehrshad)
June 23, 2023, 5:55am
11
Hi @chunsiong.zoom Any idea how to address this issue?
I’ve received a reply from Zoom support on my ticket stating that I need to seek help on devforum!!
Hi there,
Thank you for contacting Technical Support! Our Developer Advocacy team has moved over to our Zoom Developer Forums. In order to ensure that your inquiry is addressed, please navigate to the Zoom Developer Forums for assistance. https://devforum.zoom.us/
If you are interested in additional developer support options for your account, please reach out to your account executive or visit https://explore.zoom.us/docs/en-us/developer-support-plans.html for more information on our developer support tiers.
For any non-developer issues or concerns, you can view your support contact options for Zoom Technical Support here: https://support.zoom.us/hc/en-us/articles/201362003, in the meantime, we’ll be closing this ticket out.
Thank you!
Armani
What do you think?
chunsiong.zoom
(Chun Siong (tag me for response))
June 23, 2023, 9:04am
12
noted, I’ll reach out internally and get back to you on this
1 Like
chunsiong.zoom
(Chun Siong (tag me for response))
June 23, 2023, 12:25pm
13
@mehrshad ,
meanwhile, can you confirm that your SDK Credentials (SDK Key and SDK Secret) are from Meeting SDK App Type?
I’ll also reach out to you via PM for a sample of your JWT token. just to confirm we have all the necessary troubleshooting steps covered.
1 Like
mehrshad
(Mehrshad)
June 23, 2023, 12:39pm
14
Hi
Yes, that’s our account.
And yes, credentials are from our Meeting SDK app: WorqApp for Zoom
Sure, please reach out via PM.
Thanks
mehrshad
(Mehrshad)
June 27, 2023, 1:22am
15
Hi @chunsiong.zoom
I would like to see if there is any update on our case.
Thanks
chunsiong.zoom
(Chun Siong (tag me for response))
June 27, 2023, 4:01am
16
Mehrshad:
getAuthService
@mehrshad I’m still waiting for a response. Have you tried using the JWT token on web sdk by the way?
mehrshad
(Mehrshad)
June 27, 2023, 4:09am
17
Yes @chunsiong.zoom I’ve tried on the web, it gives the following error when joining too:
{type: 'JOIN_MEETING_FAILED', reason: 'Not support start meeting via tokens', errorCode: 200}
Our older version of our mobile apps which were using SDK key and secret to authenticate the SDK also doesn’t work.
I believe there is an issue with our Zoom Account where we have our Meeting SDK app.
mehrshad
(Mehrshad)
June 29, 2023, 6:55am
18
Hi @chunsiong.zoom
Hope you are doing well.
May I know if there is any update from the team?
chunsiong.zoom
(Chun Siong (tag me for response))
June 30, 2023, 6:32am
19
i’m following up with the team daily on this, still waiting for a response
mehrshad
(Mehrshad)
June 30, 2023, 1:23pm
20
OK thanks. Let us know as soon as you have updates