Native SDKs
Introduction
Developer Accounts
Access Credentials
User Login Types
Overview
Techniques
Mastering Zoom SDK
1. SDK Initialization
2. Start / Join Meeting
2.1 Non-login / API User
2.2 Email Login User
2.4 Join Meeting Only
3. In-Meeting Function
4. Other Features
SDK Reference
Resource
Get Help
Additional Tips
Hybrid Frameworks Support

Authentication ---- SSO Login User


Contents

1. Login

2. Logout

3. isLoggedIn

4. Auto Login

1 Login with SSO(Single Sign-On) token

If you want to allow your user to login with SSO token, simply pass the SSO token to loginWithSSOToken like this:

/**
* Login zoom with sso token
* @param token the sso user's token
* @return error code defined in {@link us.zoom.sdk.ZoomApiError}
*/
public int loginWithSSOToken(String token) {
  return mZoomSDK.loginWithSSOToken(token);
}

The loginWithSSOToken function will return a integer value as the result, please note that the return value just indicates whether the login request is success or not, if the login request process is successful, then it will be a value that is equal to: ZoomApiError.ZOOM_API_ERROR_SUCCESS

To get the authentication result, you need to override the following function with ZoomSDKAuthenticationListener implemented:

public class LoginActivity extends Activity implements ZoomSDKAuthenticationListener {
  @Override
  public void onZoomSDKLoginResult(long result) {
    ...
  }
}

2. Logout

Logout is simple and easy, all you need is just to call function logoutZoom() in zoomSDK:

/**
* Logout Zoom SDK.
* @return true, if user can logout.
*/
public boolean logout() {
  return mZoomSDK.logoutZoom();
}
Response Definition
TRUE Logout request successfully

To get the logout result, you need to override the following function:

public class LogoutActivity extends Activity implements ZoomSDKAuthenticationListener {
  @Override
	public void onZoomSDKLogoutResult(long result) {
    ...
  }
}

3. isLoggedIn

If you would like to check whether a Zoom user is logged in, Zoom SDK provides a simple interface:

/**
* Check if Zoom user is logged in.
* @return true, if user is logged.
*/
public boolean isLoggedIn() {
  return mZoomSDK.isLoggedIn();
}

4. Auto Login

If you have previously logged in with the SDK and you would like to avoid login again and again, you can use tryAutoLogin method to try to log the user in automatically:

/**
* Try auto login Zoom SDK with local zoom token.
* @return error code defined in {@link us.zoom.sdk.ZoomApiError}
*/
public int tryAutoLoginZoom() {
  return mZoomSDK.tryAutoLoginZoom();
}