The method provides support for authorizing MobileRTC.
More...
#import <MobileRTCAuthService.h>
The method provides support for authorizing MobileRTC.
- Warning
- Users should authorize MobileRTC before using it to avoid invalid functions in MobileRTC.
◆ getAccountInfo()
Specify to get the profile information of logged-in user.
- Returns
- The profile information of logged-in user.
- Warning
- You can only get the instance successfully of logged-in user.
◆ getUserType()
- (MobileRTCUserType) getUserType |
|
|
|
Get user type.
- Returns
- One of the user types listed in MobileRTCUserType.
- Warning
- The method is optional. The default user type is MobileRTCUserType_APIUser. User who logs in MobileRTC with working email is MobileRTCUserType_ZoomUser; User who logs in MobileRTC with SSO is MobileRTCUserType_SSOUser.
◆ isEmailLoginEnabled()
- (BOOL) isEmailLoginEnabled |
|
|
|
Query if it is enabled to login with email.
- Returns
- YES means enable, otherwise not.
- Warning
- You need call the function after auth successfull.
◆ isLoggedIn()
Check whether mobileRTC is logged-in or not.
- Returns
- YES indicates logged-in. Otherwise not.
- Warning
- The method is optional, ignore it if you do not log in with working email or SSO.
◆ loginWithEmail:password:rememberMe:()
- (BOOL) loginWithEmail: |
|
(nonnull NSString *) |
email |
password: |
|
(nonnull NSString *) |
password |
rememberMe: |
|
(BOOL) |
rememberMe |
|
|
| |
Specify to login MobileRTC with working email.
- Parameters
-
email | Login email address. |
password | Login password. |
- Returns
- YES indicates to call the method successfully. Otherwise not.
- Warning
- The method is optional, ignore it if you do not have a working email for MobileRTC.
◆ loginWithSSOToken:rememberMe:()
- (BOOL) loginWithSSOToken: |
|
(nonnull NSString *) |
token |
rememberMe: |
|
(BOOL) |
rememberMe |
|
|
| |
Specify to login MobileRTC with SSO (Single-Sign-On).
- Parameters
-
token | User's token information. |
- Returns
- YES indicates to call the method successfully. Otherwise not.
- Warning
- The method is optional, ignore it if you do not login MobileRTC with SSO.
◆ logoutRTC()
Specify to logout MobileRTC.
- Returns
- YES indicates to call the method successfully. Otherwise not.
- Warning
- The method is optional, ignore it if you do not login MobileRTC.
◆ sdkAuth()
Authenticate SDK.
- Warning
- if you want to auth with jwt token, please fill the token property. Otherwise, please fill the client key and client secret property.
-
If the key or secret of client is blank, user will get error:MobileRTCAuthError_KeyOrSecretEmpty via onMobileRTCAuthReturn defined in MobileRTCAuthDelegate.
◆ clientKey
APP Key got from zoom.us.
- Warning
- Keep the value as a secret. DO NOT publish it.
◆ clientSecret
- (NSString*) clientSecret |
|
readwritenonatomicretain |
APP secret got from zoom.us.
- Warning
- Keep the value as a secret. DO NOT publish it.
◆ jwtToken
jwt auth token.
- Warning
- Keep the value as a secret. DO NOT publish it. If jwtToken is nil or empty,We will user your appKey and appSecret to Auth, We recommend using JWT Token, and generate JWT Token on your web backend.
The documentation for this class was generated from the following file: