Automatic login does not work when using ZoomSDKAuthService' loginSSO with rememberMe set to YES


Automatic login does not work on consecutive application sessions and Zoom SDK initialization after using ZoomSDKAuthService API - (ZoomSDKError)loginSSO:(NSString*)ssoToken RememberMe:(BOOL)rememberMe with valid SSO token (we can login successfully) and rememberMe flag set to YES.

Which version?

To Reproduce(If applicable)

  1. During user SSO authentication we request OAuth access token as described here:
  1. Then with the access token we request a user token with this API
  1. We pass the user token to - (ZoomSDKError)loginSSO:(NSString*)ssoToken RememberMe:(BOOL)rememberMe as described above with rememberMe parameter set to YES.

  2. User login is successful

  3. After restarting our application - (void)onZoomSDKLogin:(ZoomSDKLoginStatus)loginStatus failReason:(NSString*)reason; delegate gets called with loginStatus ZoomSDKLoginStatus_Failed and reason nil.

Expected behaviour:

- (void)onZoomSDKLogin:(ZoomSDKLoginStatus)loginStatus failReason:(NSString*)reason delegate should be called with ZoomSDKLoginStatus_Success. Previously logged in user authenticated automatically by the SDK.

Additional context

Might be worth to mention that rememberMe set to YES works when we use - (ZoomSDKError)login:(NSString*)userName Password:(NSString*)password RememberMe:(BOOL)rememberMe. On consecutive application starts user gets logged in automatically.

Hi @peter.kutasi,

Thanks for the post. It seems like the reason why it is not working is that the SSO login was not a success. Please refer to my answer here: Can't login with user token acquired after OAuth with email / password using ZoomSDKAuthService loginSSO method

Hope this helps. Thanks!

Hi @Carson_Chen

Thanks for the reply! You are right, we misused the SSO login API, mixed the OAuth and SSO login. The strange thing was that the login was successful with the token we got from the usertoken endpoint after an OAuth authentication, but I see now that this is not the intended usage. At the end we switched to use ZAK token to start meeting in case the user was authenticated with OAuth.

Thanks again!

Hi @peter.kutasi,

Thanks for the update and glad to hear that it is working for you now. Happy Zooming!