Enter your credentials


Contents

1. Enter your JWT

2. Edit your display name

1. Enter your JWT

SDK keys and secrets are vital for Zoom to identify who and which application is calling for Zoom SDK services. To authenticate with Zoom, you must generate a JWT using your SDK key and secret.

In the sample app, we have created an interface for you to enter your JWT. Follow the steps below to enter your token. Note that in your production ready app, you should not hard code your JWT.

  1. Open ./sample/java/us.zoom.sdkexample/initsdk/AuthConstants.java
  2. Enter your JWT value in the SDK_JWTTOKEN property.
Do not use raw IP address as the web domain

Never use raw IP address as the web domain as it may lead your app to vulnerability issues. If you would like to learn why, please see our security practices for more information.

./sample/java/us.zoom.sdkexample/AuthConstants.java
/**
*    ========== Disclaimer ==========
*
*    Please 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.
*    We STRONGLY DISCOURAGE the way of HARDCODING any Zoom Credentials
*    (username, password, API Keys & secrets, SDK keys & secrets, etc.)
*    or any Personal Identifiable Information (PII) inside your application. 
*    WE DON’T MAKE ANY COMMITMENTS ABOUT ANY LOSS CAUSED BY HARD-CODING CREDENTIALS
*    OR SENSITIVE INFORMATION INSIDE YOUR APP WHEN DEVELOPING WITH OUR SDK.
*
*/

// 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;

2. Edit your display name

In this demo app, you are able to join the meeting without logging in. The display name that you provide in this step will be shown in the app UI when you join the meeting.

  1. Open ./sample/java/us.zoom.sdkexample/startjoinmeeting/joinmeetingonly/JoinMeetingHelper.java
  2. In the JoinMeetingHelper class, find a constant named “DISPLAY_NAME” and enter the name to be displayed as the value of the constant.
./sample/java/us.zoom.sdkexample/startjoinmeeting/joinmeetingonly/JoinMeetingHelper.java
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 proceed to the next section.


Next