Enter your credentials
The code on this page works with either the default UI or the custom UI.
App credentials are vital for Zoom to identify who and which application is calling for any Zoom SDK services.
Enter your JWT
To authenticate with Zoom, you must generate a JWT using your Client ID and Client Secret.
In the sample app, we created an interface for you to enter your JWT. Follow these steps to enter your token. Do not hard code your JWT in a production-ready app.
- Open
./sample/java/us.zoom.sdkexample/initsdk/AuthConstants.java - Enter your JWT value in the
SDK_JWTTOKENproperty.
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.
./sample/java/us.zoom.sdkexample.initsdk/AuthConstants.java
// Always use "zoom.us" as the value of the WEB_DOMAIN field.
public final static String WEB_DOMAIN = "zoom.us";
public final static String SDK_JWTTOKEN = JWT_TOKEN;
Edit your display name
In this demo app, you can join the meeting without logging in. The display name you provide in this step will show in the app UI when you join the meeting.
- Open
./sample/java/us.zoom.sdkexample/startjoinmeeting/joinmeetingonly/JoinMeetingHelper.java - In the
JoinMeetingHelperclass, find a constant named "DISPLAY_NAME" and enter the value to be displayed.
public class JoinMeetingHelper {
private final static String TAG = "JoinMeetingHelper";
private static JoinMeetingHelper mJoinMeetingHelper;
private ZoomSDK mZoomSDK;
private final static String DISPLAY_NAME = "Yourdisplayname";
private JoinMeetingHelper() {
mZoomSDK = ZoomSDK.getInstance();
}
public synchronized static JoinMeetingHelper getInstance() {
mJoinMeetingHelper = new JoinMeetingHelper();
return mJoinMeetingHelper;
}
....
....
}
Save the changes, and go to the next section.