Description
I can not get the callback to initiate for the Authentication request. I created the JWT several different ways including using the JWT.io suggested, but after making the following call
Return of SDKAuth
ZOOM_SDK_DOTNET_WRAP.SDKError.SDKERR_UNINITIALIZE
//register callback
ZOOM_SDK_DOTNET_WRAP.CZoomSDKeDotNetWrap.Instance.GetAuthServiceWrap().Add_CB_onAuthenticationReturn(onAuthenticationReturn);
ZOOM_SDK_DOTNET_WRAP.CZoomSDKeDotNetWrap.Instance.GetAuthServiceWrap().Add_CB_onLoginRet(onLoginRet);
ZOOM_SDK_DOTNET_WRAP.CZoomSDKeDotNetWrap.Instance.GetAuthServiceWrap().Add_CB_onLogout(onLogout);
ZOOM_SDK_DOTNET_WRAP.AuthContext param = new ZOOM_SDK_DOTNET_WRAP.AuthContext();
param.jwt_token = JWTTokenTextBox.Text;
param.jwt_token = token;
var x = ZOOM_SDK_DOTNET_WRAP.CZoomSDKeDotNetWrap.Instance.GetAuthServiceWrap().SDKAuth(param);
Payload
var now = DateTime.UtcNow;
var issDate = (int)(now - new DateTime(1970, 1, 1)).TotalSeconds;
var securityKey = new Microsoft.IdentityModel.Tokens.SymmetricSecurityKey(Encoding.UTF8.GetBytes(apiSecret));
var credentials = new SigningCredentials(securityKey, SecurityAlgorithms.HmacSha256);
var header = new JwtHeader(credentials);
var payload = new JwtPayload
{
{"appKey", apiKey },
{"iat", issDate},
{"exp", issDate + 3600 },
{"tokenExp", issDate + 3600 }
};
var secToken = new JwtSecurityToken(header, payload);
var handler = new JwtSecurityTokenHandler();
var tokenString = handler.WriteToken(secToken);
I am not receiving the onAuthenticationReturn Event. I didn’t realize that the SDKAuth returned a value. Now that I see it is ZOOM_SDK_DOTNET_WRAP.SDKError.SDKERR_UNINITIALIZE, I am sure that is why I am not getting the call back, but why would I receive this value from the SDKAuth call?