Enter your credentials
The code on this page works with either the default UI or the custom UI.
Enter your JWT
App keys and secrets are vital for Zoom to identify who and which application is calling for Meeting SDK services. To authenticate with Zoom, generate a JWT using your app key and secret.
In the sample app, we created an interface for you to enter your JWT. Follow these steps to enter your token.
- Open
MobileRTCSample/AppDelegate.h - Enter your JWT as the value of the
KjwtTokenproperty. - Set the value of
kSDKDomaintohttps://zoom.us.
Do not hard-code your JWT in your production app.
AppDelegate.h
...
#define KjwtToken @"yourJWT"
#define kSDKDomain @"https://zoom.us"
...
Never use a raw IP address as the web domain, as it opens your app to vulnerability issues. To learn more, see our security practices.
========== Disclaimer ==========
Be aware that all hard-coded variables and constants shown in the documentation and in the demo, such as JWT, are ONLY FOR DEMO AND TESTING PURPOSES. Hardcoding any Zoom credentials goes against Zoom's Security Best Practices. DO NOT HARDCODE any Zoom credentials (username, password, API Keys & secrets, SDK keys & secrets, etc.) or any Personal Identifiable Information (PII) inside your application. WE MAKE NO COMMITMENTS ABOUT ANY LOSS CAUSED BY HARDCODING CREDENTIALS, PII, OR SENSITIVE INFO INSIDE YOUR APP WHEN DEVELOPING WITH OUR SDK.
Edit your display name
Our authentication process lets you join a meeting without logging in. When in that scenario, the display name in the meeting will be the name that you provide in the application.
- Open
MobileRTCSample/MainViewController.h - At the very beginning of the file, find a constant called
kSDKUserName. ChangekSDKUserNameto the value to be displayed.
MainViewController.h
...
#define kSDKUserID @""
#define kSDKUserName @"Enteryourdisplaynamehere"
#define kSDKUserToken @""
#define kSDKMeetNumber @""
#define kZAK @""
...
Save the changes, and go to the next section.