DEV Community

Cover image for Device Authorization - Zoom

Device Authorization - Zoom

Tan Boon Jun on January 27, 2023

Introduction Zoom has recently introduced Device Authorization to better improve end user experience when authorizing apps to access Zoo...
Collapse
 
mmimeault profile image
Michael Mimeault

Hi,

Thanks for sharing this post.

We implemented this new flow and it is working fine. Great job.

But I have a small technical question:
When the application is waiting for the user to sign-in, we are calling at a specific interval that url https://zoom.us/oauth/token until the user sign-in.

At what interval should we keep calling this URL? (Do you have any recommandation?) I guess this add some traffic to your servers, so I would like to pick a retry interval that has been accepted internally.

Thanks

Collapse
 
ticorrianheard profile image
Ticorrian Heard

Hi Michael,

We provide a minimum interval for you to use in the response body when you make a call to zoom.us/oauth/devicecode as shown:

Image description

You can specify any value higher than this minimum to suit your use case.

Thanks
Ticorrian

Collapse
 
mmimeault profile image
Michael Mimeault • Edited

Thanks, I wasn't sure how to interpret this value before.

But I still have some questions..

Is it in seconds?

By minimum you mean...
That we shouldn't call the server more than each 5 seconds?
It seem to be a long interval.
I was experimenting that sometime the server takes a couple of second (1 or 2) before actually returning the "success" response after the user log-in. In that case it mean the user could wait between 0 and 7 seconds before actually see the app updated with the credentials.

Is 5 seconds may get reduced in the future, or this is based on the average of all other services implementing such device-auth mechanism?

Sorry for being so specific with the interval here. But I just want to make sure we are giving to our users the best user experience.

Thanks.

Thread Thread
 
ticorrianheard profile image
Ticorrian Heard

No problem, I'm happy to help!

The value is in seconds. At the moment, we do not have plans to reduce this minimum time but I can log that as a feature request for our engineering team to evaluate.

Thanks
Ticorrian

Collapse
 
maurohorie profile image
MauroHorie

Hello,

I see the option to enable "Use App on Device" only when "Intend to Publish" is No. The option (and the functionality) disappears when "Intend to Publish" is yes. Is that a bug?

Collapse
 
boon9236 profile image
Tan Boon Jun

Hi @maurohorie, are you still experiencing this on your end?

Collapse
 
maurohorie profile image
MauroHorie

Yes, I still see it. The option is not available on the console.

Thread Thread
 
boon9236 profile image
Tan Boon Jun • Edited

@maurohorie that should not be the case. Can you request for support in our Dev Forum via the link here? Or if you happen to be our ISV partners, you can contact the ISV SE for support.

Thread Thread
 
maurohorie profile image
MauroHorie

Sure, will do. Thanks for responding!

Thread Thread
 
boon9236 profile image
Tan Boon Jun

You're welcome :)

Collapse
 
firas_zoom profile image
firas

Hi,

Thank you for this great explanation. I am at the end of my studies, and my project is to create custom applications with a powerful collaboration suite that includes designing and developing a web application that integrates features to optimize meetings (instant meetings, scheduled meetings, one-to-one calls, joining a Zoom meeting, and many more...). Each user can access these features by creating an account on this site.

I have read the Zoom documentation, but I'm confused about which app to use to start with. Should I use the Meeting SDK or Video SDK? Also, how can my users generate Zoom meetings without having a Zoom account?

By the way, the company i have an internship with is a Zoom partner. Please let me know if you have any advice to help me.

Thank you

Collapse
 
boon9236 profile image
Tan Boon Jun

Hey @firas_zoom,

Sorry for the late reply as I am not getting a notification whenever a new comment pops up. You can refer to this link for a quick comparison of the two SDKs. As for the generating of Zoom meeting, there needs to be a host in order to create a zoom meeting so either the host needs to create it or it can be done through our API here.

Let me know if you need more information on.

Thank you.