Windows SDK API Reference
Loading...
Searching...
No Matches
auth_service_interface.h
Go to the documentation of this file.
1
6#ifndef _AUTH_SERVICE_INTERFACE_H_
7#define _AUTH_SERVICE_INTERFACE_H_
8#include "zoom_sdk_def.h"
9
11
17{
30};
31
37{
42};
43
45{
61};
62
67typedef struct tagAuthParam
68{
69 const wchar_t* appKey;
70 const wchar_t* appSecret;
72 {
73 appKey = NULL;
74 appSecret = NULL;
75 }
77
82typedef struct tagAuthContext
83{
84 const wchar_t* jwt_token;
107 {
108 jwt_token = NULL;
109 }
110
117{
120};
121
127{
128 const wchar_t* explained_content;
130 const wchar_t* url_register_terms;
133 {
134 Reset();
135 }
136
137 void Reset()
138 {
139 explained_content = nullptr;
141 url_register_terms = nullptr;
143 }
145
149{
150public:
153 virtual const wchar_t* GetDisplayName() = 0;
156 virtual LoginType GetLoginType() = 0;
157 virtual ~IAccountInfo(){};
158};
159
163{
164public:
166
169 virtual void onAuthenticationReturn(AuthResult ret) = 0;
170
175 virtual void onLoginReturnWithReason(LOGINSTATUS ret, IAccountInfo* pAccountInfo, LoginFailReason reason) = 0;
176
178 virtual void onLogout() = 0;
179
181 virtual void onZoomIdentityExpired() = 0;
182
184 virtual void onZoomAuthIdentityExpired() = 0;
185};
186
188class IOutlookPluginIntegrationHelper;
192{
193public:
198 virtual SDKError SetEvent(IAuthServiceEvent* pEvent) = 0;
199
204 virtual SDKError SDKAuth(AuthParam& authParam) = 0;
205
210 virtual SDKError SDKAuth(AuthContext& authContext) = 0;
211
215
218 virtual const wchar_t* GetSDKIdentity() = 0;
219
224 virtual const wchar_t* GenerateSSOLoginWebURL(const wchar_t* prefix_of_vanity_url) = 0;
225
231 virtual SDKError SSOLoginWithWebUriProtocol(const wchar_t* uri_protocol) = 0;
233
237 virtual SDKError LogOut() = 0;
238
242
246
250
252 virtual const wchar_t* getWebinalLegalNoticesPrompt() = 0;
253
256};
258#endif
LoginType
User login type. Here are more detailed structural descriptions.
@ LoginType_Unknown
Unknown type.
@ LoginType_SSO
Login with SSO token.
struct tagAuthContext AuthContext
LOGINSTATUS
Login status. Here are more detailed structural descriptions.
@ LOGIN_IDLE
Unlogged in.
@ LOGIN_FAILED
Login failed.
@ LOGIN_PROCESSING
In process of login.
@ LOGIN_SUCCESS
Login successful.
@ LoginFail_None
@ LoginFail_SMSCodeError
@ LoginFail_OtherIssue
@ LoginFail_Mfa_Required
@ LoginFail_PhoneNumberFormatInValid
@ LoginFail_SMSCodeExpired
@ LoginFail_Need_Bitrthday_ask
@ LoginFail_SDKNeedUpdate
@ LoginFail_LoginTokenInvalid
@ LoginFail_WrongPassword
@ LoginFail_EmailLoginDisable
@ LoginFail_UserDisagreeLoginDisclaimer
@ LoginFail_UserNotExist
@ LoginFail_TooManyFailedAttempts
@ LoginFail_AccountLocked
AuthResult
SDK Authentication Result. Here are more detailed structural descriptions.
@ AUTHRET_NONE
Initial status.
@ AUTHRET_UNKNOWN
Unknown error.
@ AUTHRET_OVERTIME
Time out.
@ AUTHRET_SERVICE_BUSY
Service is busy.
@ AUTHRET_SUCCESS
Authentication is successful.
@ AUTHRET_JWTTOKENWRONG
Account does not support this SDK version.
@ AUTHRET_ACCOUNTNOTSUPPORT
The user account does not support.
@ AUTHRET_KEYORSECRETEMPTY
The key or secret to authenticate is empty.
@ AUTHRET_NETWORKISSUE
Network issues.
@ AUTHRET_ACCOUNTNOTENABLESDK
The user account is not enabled for SDK.
@ AUTHRET_CLIENT_INCOMPATIBLE
@ AUTHRET_KEYORSECRETWRONG
The key or secret to authenticate is wrong.
struct tagWebinarLegalNoticesExplainedInfo WebinarLegalNoticesExplainedInfo
struct tagAuthParam AuthParam
Account information interface.
virtual const wchar_t * GetDisplayName()=0
Get the screen name of user.
virtual LoginType GetLoginType()=0
Get login type.
Authentication service callback event.
virtual void onZoomIdentityExpired()=0
Zoom identity has expired, please re-login or generate a new zoom access token via REST Api.
virtual void onLoginReturnWithReason(LOGINSTATUS ret, IAccountInfo *pAccountInfo, LoginFailReason reason)=0
Callback of login result with fail reason.
virtual void onAuthenticationReturn(AuthResult ret)=0
Authentication result callback.
virtual void onZoomAuthIdentityExpired()=0
Zoom authentication identity will be expired in 10 minutes, please re-auth.
virtual void onLogout()=0
Logout result callback.
Authentication Service Interface.
virtual AuthResult GetAuthResult()=0
Get authentication status.
virtual bool getWebinalLegalNoticesExplained(WebinarLegalNoticesExplainedInfo &explained_info)=0
Get the webinal legal notices explained.
virtual IDirectShareServiceHelper * GetDirectShareServiceHeler()=0
Get direct share service helper interface.
virtual SDKError SetEvent(IAuthServiceEvent *pEvent)=0
Set the authentication service callback event handler.
virtual LOGINSTATUS GetLoginStatus()=0
Get login status.
virtual IAccountInfo * GetAccountInfo()=0
Get login account information.
virtual SDKError LogOut()=0
Account logout.
virtual SDKError SDKAuth(AuthContext &authContext)=0
SDK Authentication with jwt token.
virtual SDKError SDKAuth(AuthParam &authParam)=0
SDK Authentication.
virtual const wchar_t * GetSDKIdentity()=0
Get SDK identity.
virtual const wchar_t * getWebinalLegalNoticesPrompt()=0
Get the webinal legal notices prompt.
Direct sharing helper Interface.
SDK Authentication parameter with jwt token. Here are more detailed structural descriptions.
const wchar_t * jwt_token
SDK Authentication parameter with sdk key/secret. Here are more detailed structural descriptions.
const wchar_t * appKey
APP Key string.
const wchar_t * appSecret
APP Secret string.
ZOOM windows SDK Common Definition File.
#define END_ZOOM_SDK_NAMESPACE
Definition: zoom_sdk_def.h:21
#define BEGIN_ZOOM_SDK_NAMESPACE
Definition: zoom_sdk_def.h:20
SDKError
SDK error types. Here are more detailed structural descriptions.
Definition: zoom_sdk_def.h:30