# "Access token is expired" for the Zoom setup at Moodle

**URL:** <https://devforum.zoom.us/t/access-token-is-expired-for-the-zoom-setup-at-moodle/33300>\
**Category:** API and Webhooks\
**Created:** [October 15, 2020, 2:36am UTC](https://devforum.zoom.us/t/access-token-is-expired-for-the-zoom-setup-at-moodle/33300 "2020-10-15T02:36:50Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![james.wong](https://avatars.discourse-cdn.com/v4/letter/j/b19c9b/32.png) [@james.wong](https://devforum.zoom.us/u/james.wong)\
**Post date:** [October 15, 2020, 2:36am UTC](https://devforum.zoom.us/t/access-token-is-expired-for-the-zoom-setup-at-moodle/33300/1 "2020-10-15T02:36:50Z")

</div>

**Description**  
For adding the Zoom Plugin into the Moodle v3.9, it is required Zoom API Key and API secret. I created the JWT app at Zoom and also the app is activated. Then, I copied the API Key and API secret to the Zoom meeting setup in Moodle. However, it prompted error message even the JWT is activated. I checked that the JWT token is validated.

**Error**  
Connection status: Connection failed: Access token is expired.

**Which App Type (OAuth / Chatbot / JWT / Webhook)?**  
JWT

**Which Endpoint/s?**

**How To Reproduce (If applicable)**

1. Create and activate the JWT
2. Copy the API Key and secret
3. Paste the API Key and secret to the Zoom meeting setup at Moodle
4. Click “Save” button.
5. Error message prompted.

**Screenshots (If applicable)**

 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/f/5/f53c81e2e0ba03999753333f98bddc2c70ce77f8.png)

**Additional context**  
Add any other context about the problem here.

---

<div class="post-metadata">

**Author:** ![will.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/will.zoom/32/14417_2.png) [@will.zoom](https://devforum.zoom.us/u/will.zoom)\
**Post date:** [October 15, 2020, 8:00pm UTC](https://devforum.zoom.us/t/access-token-is-expired-for-the-zoom-setup-at-moodle/33300/2 "2020-10-15T20:00:18Z")

</div>

Hey @james.wong,

Can you confirm that you have a Business or Educational type Zoom account? I believe this is a prerequisite for [this plugin](https://moodle.org/plugins/mod_zoom), and may be the reason you’re getting this error.

Thanks,  
Will

---

<div class="post-metadata">

**Author:** ![james.wong](https://avatars.discourse-cdn.com/v4/letter/j/b19c9b/32.png) [@james.wong](https://devforum.zoom.us/u/james.wong)\
**Post date:** [October 16, 2020, 1:20am UTC](https://devforum.zoom.us/t/access-token-is-expired-for-the-zoom-setup-at-moodle/33300/3 "2020-10-16T01:20:37Z")

</div>

Hi Will,

I checked from “Admin” \> “Account Management” \> “Account Profile”, the “Account Type” is shown **Education** as image below. Does it prove my Educational type Zoom account?  
 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/2/62a916ecb727ecd61248029066c310901f53dea3.png)

Thanks,  
James

---

<div class="post-metadata">

**Author:** ![will.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/will.zoom/32/14417_2.png) [@will.zoom](https://devforum.zoom.us/u/will.zoom)\
**Post date:** [October 16, 2020, 8:11pm UTC](https://devforum.zoom.us/t/access-token-is-expired-for-the-zoom-setup-at-moodle/33300/4 "2020-10-16T20:11:29Z")

</div>

Hey @james.wong,

Thanks for confirming. I think this post might help:

> [@Connection failed: Invalid access token](https://devforum.zoom.us/t/connection-failed-invalid-access-token/13467/15):
>
> I found the solution to the problem. This may help other users. The installation info for the plugin is on their github page and it reads: Requires Zoom API key and secret. See [https://marketplace.zoom.us/docs/guides/authorization/jwt/jwt-with-zoom](https://marketplace.zoom.us/docs/guides/authorization/jwt/jwt-with-zoom). You will need to create a JWT app and that will generate the API key and secret. You will need to have Zoom administrator access. Please note that the API key and secret is not the same as the LTI key/secret. Here is the link to their github page:…

It sounds like you need to be a Zoom Admin, in addition to having the correct account type.

Let me know if this helps to clarify,  
Will

---

<div class="post-metadata">

**Author:** ![james.wong](https://avatars.discourse-cdn.com/v4/letter/j/b19c9b/32.png) [@james.wong](https://devforum.zoom.us/u/james.wong)\
**Post date:** [October 19, 2020, 1:03am UTC](https://devforum.zoom.us/t/access-token-is-expired-for-the-zoom-setup-at-moodle/33300/5 "2020-10-19T01:03:42Z")

</div>

Hi Will,

Thanks for your information.

Firstly, my account role has already granted as Admin role (please see the image below), and I used the account to create the JWT. However, the message “Access token is expired” is still here. For the connection, would I need to open any port between Moodle and Zoom integration? Port 80 and 443 are opened.

 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/c/b/cb42b8a1ac874c2f964135fda85bfa7c76cd74b3.png)

Thanks,  
James

---

<div class="post-metadata">

**Author:** ![will.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/will.zoom/32/14417_2.png) [@will.zoom](https://devforum.zoom.us/u/will.zoom)\
**Post date:** [October 19, 2020, 9:03pm UTC](https://devforum.zoom.us/t/access-token-is-expired-for-the-zoom-setup-at-moodle/33300/6 "2020-10-19T21:03:24Z")

</div>

Hey @james.wong,

Thanks for sharing that. Since this is not an official Zoom plugin that our team supports, you might consider also posting on the Moodle Plugin page here, to see if others have run into this issue:

> **[Moodle plugins directory: Zoom meeting](https://moodle.org/plugins/mod_zoom)**

If you haven’t yet, I would also try regenerating your JWT credentials to see if that makes a difference.

Thanks,  
Will

---

<div class="post-metadata">

**Author:** ![james.wong](https://avatars.discourse-cdn.com/v4/letter/j/b19c9b/32.png) [@james.wong](https://devforum.zoom.us/u/james.wong)\
**Post date:** [October 20, 2020, 12:45am UTC](https://devforum.zoom.us/t/access-token-is-expired-for-the-zoom-setup-at-moodle/33300/7 "2020-10-20T00:45:15Z")

</div>

Hi Will,

Thanks for your information and support.

Thanks.  
James

---

<div class="post-metadata">

**Author:** ![will.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/will.zoom/32/14417_2.png) [@will.zoom](https://devforum.zoom.us/u/will.zoom)\
**Post date:** [October 20, 2020, 7:20pm UTC](https://devforum.zoom.us/t/access-token-is-expired-for-the-zoom-setup-at-moodle/33300/8 "2020-10-20T19:20:29Z")

</div>

No problem, @james.wong. Please let me know what you find, or if there’s anything else we can do from our end for you.

-Will

---

<div class="post-metadata">

**Author:** ![james.wong](https://avatars.discourse-cdn.com/v4/letter/j/b19c9b/32.png) [@james.wong](https://devforum.zoom.us/u/james.wong)\
**Post date:** [October 30, 2020, 1:40am UTC](https://devforum.zoom.us/t/access-token-is-expired-for-the-zoom-setup-at-moodle/33300/9 "2020-10-30T01:40:26Z")

</div>

Hi Will,

FYI. I posted the question on the forum at Moodle plugins. I used the JWT token to pass the authentication to get the Zoom API using the POSTMAN. However, it is still shown the “Access token is expired”. Anyway, it is proved that the JWT token is valid.

At Moodle server, I opened the port 80 and 443 only. Is it enough for the Zoom Plugin?

---

<div class="post-metadata">

**Author:** ![will.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/will.zoom/32/14417_2.png) [@will.zoom](https://devforum.zoom.us/u/will.zoom)\
**Post date:** [October 30, 2020, 9:14pm UTC](https://devforum.zoom.us/t/access-token-is-expired-for-the-zoom-setup-at-moodle/33300/10 "2020-10-30T21:14:50Z")

</div>

Hey @james.wong,

From the Zoom side of things, those ports should work. You may want to check on any Moodle specifics with them as well. Have you had your Zoom account administrator also try installing the plugin, to see if they have better luck?

Thanks,  
Will

---

<div class="post-metadata">

**Author:** ![james.wong](https://avatars.discourse-cdn.com/v4/letter/j/b19c9b/32.png) [@james.wong](https://devforum.zoom.us/u/james.wong)\
**Post date:** [November 4, 2020, 12:52am UTC](https://devforum.zoom.us/t/access-token-is-expired-for-the-zoom-setup-at-moodle/33300/11 "2020-11-04T00:52:54Z")

</div>

Hi Will,

I found out the problem. The Moodle Server’s time does not up-to-date. After sync with time machine, the connection immediately works.

Thank you so much for your great support!

Thanks,  
James

---

<div class="post-metadata">

**Author:** ![will.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/will.zoom/32/14417_2.png) [@will.zoom](https://devforum.zoom.us/u/will.zoom)\
**Post date:** [November 4, 2020, 9:01pm UTC](https://devforum.zoom.us/t/access-token-is-expired-for-the-zoom-setup-at-moodle/33300/12 "2020-11-04T21:01:52Z")

</div>

Hey @james.wong,

Ah, I see! Thanks so much for sharing this—I’m sure others will find this helpful in the future. 🙂

Best,  
Will

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [December 5, 2020, 7:01am UTC](https://devforum.zoom.us/t/access-token-is-expired-for-the-zoom-setup-at-moodle/33300/13 "2020-12-05T07:01:54Z")

</div>

Closed on December 5, 2020, 7:01am UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
