# Zoom JWT to S2S Oauth

**URL:** <https://devforum.zoom.us/t/zoom-jwt-to-s2s-oauth/82610>\
**Category:** API and Webhooks\
**Tags:** webhooks, api\
**Created:** [February 5, 2023, 8:30pm UTC](https://devforum.zoom.us/t/zoom-jwt-to-s2s-oauth/82610 "2023-02-05T20:30:47Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![todin](https://avatars.discourse-cdn.com/v4/letter/t/977dab/32.png) [@todin](https://devforum.zoom.us/u/todin)\
**Post date:** [February 5, 2023, 8:30pm UTC](https://devforum.zoom.us/t/zoom-jwt-to-s2s-oauth/82610/1 "2023-02-05T20:30:48Z")

</div>

**Hi,**

**I’m newbie on API and i have problem with that integration. JWT token expiring and I need to take zoom audit logs to QRadar via that workflow but i couldn’t change auth method jwt to s2s oauth can you help me with this?**

```auto
<?xml version="1.0" encoding="UTF-8" ?>
<Parameters>
    <Parameter name="host" label="Host" required="true" default="api.zoom.us" />
    <Parameter name="api_key" label="API Key" required="true" />
    <Parameter name="api_secret" label="API Secret" required="true" secret="true" />
</Parameters>
<Actions>
    <!-- Initialize the Bookmark -->
    <Initialize path="/bookmark" value="1970-01-01" />
    <!-- Create an Access Token -->
    <CreateJWTAccessToken savePath="/access_token">
        <Header>
            <Value name="alg" value="HS256" />
            <Value name="typ" value="JWT" />
        </Header>
        <Payload>
            <Value name="iss" value="${/api_key}" />
        </Payload>
        <Secret value="${/api_secret}" />
    </CreateJWTAccessToken>
    <!-- Fetch Events -->
    <CallEndpoint url="https://${/host}/v2/report/operationlogs" method="GET" savePath="/get_events">
        <BearerAuthentication token="${/access_token}" />
        <QueryParameter name="from" value="${/bookmark}" omitIfEmpty="true" />
<QueryParameter name="page_size" value="300" />
    </CallEndpoint>
    <!-- Handle Errors -->
    <If condition="/get_events/status_code != 200">
        <Abort reason="${/get_events/body/code}: ${/get_events/body/message}" />
    </If>
    <!-- Post Events, if any -->
    <If condition="count(/get_events/body/operationlogs) > 0">
        <PostEvents path="/get_events/body/operationlogs" source="${/host}" />
        <!-- Update the bookmark -->
        <ParseDate pattern="yyyy-MM-dd'T'HH:mm:ss'Z'" timeZone="UTC" date="${max(/get_events/body/operationlogs/time)}" savePath="/last_event_time" />
        <FormatDate pattern="yyyy-MM-dd" timeZone="UTC" time="${/last_event_time + 86400000}" savePath="/bookmark" />
    </If>
</Actions>
<Tests>
    <DNSResolutionTest host="${/host}" />
    <TCPConnectionTest host="${/host}" />
    <SSLHandshakeTest host="${/host}" />
    <HTTPConnectionThroughProxyTest url="https://${/host}" />
</Tests>

```

---

<div class="post-metadata">

**Author:** ![gianni.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/gianni.zoom/32/32523_2.png) [@gianni.zoom](https://devforum.zoom.us/u/gianni.zoom)\
**Post date:** [February 6, 2023, 6:30pm UTC](https://devforum.zoom.us/t/zoom-jwt-to-s2s-oauth/82610/2 "2023-02-06T18:30:17Z")

</div>

Hi @todin ,

Can you please clarify where in the process you need help?

Have you already successfully [created and authorized a server to server OAuth app](https://marketplace.zoom.us/docs/guides/build/server-to-server-oauth-app/)?

---

<div class="post-metadata">

**Author:** ![todin](https://avatars.discourse-cdn.com/v4/letter/t/977dab/32.png) [@todin](https://devforum.zoom.us/u/todin)\
**Post date:** [February 6, 2023, 6:43pm UTC](https://devforum.zoom.us/t/zoom-jwt-to-s2s-oauth/82610/3 "2023-02-06T18:43:46Z")

</div>

Hi Gianni,

I created app and this workflow working with jwt token and i need to change this method s2s oauth.

Best Regards.

---

<div class="post-metadata">

**Author:** ![gianni.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/gianni.zoom/32/32523_2.png) [@gianni.zoom](https://devforum.zoom.us/u/gianni.zoom)\
**Post date:** [February 6, 2023, 8:28pm UTC](https://devforum.zoom.us/t/zoom-jwt-to-s2s-oauth/82610/4 "2023-02-06T20:28:47Z")

</div>

Hi @todin , I’m sorry I am confused – is that a yes, you’ve created the server-to-server OAuth application or no, you’ve only created a JWT app?

---

<div class="post-metadata">

**Author:** ![todin](https://avatars.discourse-cdn.com/v4/letter/t/977dab/32.png) [@todin](https://devforum.zoom.us/u/todin)\
**Post date:** [February 6, 2023, 8:41pm UTC](https://devforum.zoom.us/t/zoom-jwt-to-s2s-oauth/82610/5 "2023-02-06T20:41:40Z")

</div>

I have created oauth application on zoom side and i need to integrate with that workflow qradar. So thats why i need to change workflow jwt auth to s2s oauth on this workflow

---

<div class="post-metadata">

**Author:** ![todin](https://avatars.discourse-cdn.com/v4/letter/t/977dab/32.png) [@todin](https://devforum.zoom.us/u/todin)\
**Post date:** [February 10, 2023, 10:19am UTC](https://devforum.zoom.us/t/zoom-jwt-to-s2s-oauth/82610/6 "2023-02-10T10:19:51Z")

</div>

Is there any update?

---

<div class="post-metadata">

**Author:** ![gianni.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/gianni.zoom/32/32523_2.png) [@gianni.zoom](https://devforum.zoom.us/u/gianni.zoom)\
**Post date:** [February 22, 2023, 6:21pm UTC](https://devforum.zoom.us/t/zoom-jwt-to-s2s-oauth/82610/7 "2023-02-22T18:21:15Z")

</div>

Hi @todin ,

> [@todin](#):
>
> I have created oauth application on zoom side and i need to integrate with that workflow qradar. So thats why i need to change workflow jwt auth to s2s oauth on this workflow

I am still confused. You cannot just change JWT to Server to Server. You have to create a new and separate Server to Server app.

Can you please share the QRadar documentation so I know better how you’re trying to use it with Zoom?

---

<div class="post-metadata">

**Author:** ![todin](https://avatars.discourse-cdn.com/v4/letter/t/977dab/32.png) [@todin](https://devforum.zoom.us/u/todin)\
**Post date:** [February 22, 2023, 6:35pm UTC](https://devforum.zoom.us/t/zoom-jwt-to-s2s-oauth/82610/9 "2023-02-22T18:35:01Z")

</div>

Hi Gianni,

Below article based on jwt token and expiring i need to s2s oauth.

> **[IBM-QRadar-Universal-Cloud-REST-API/IBM Proof Of Concept/Zoom at master ·...](https://github.com/IBM/IBM-QRadar-Universal-Cloud-REST-API/tree/master/IBM%20Proof%20Of%20Concept/Zoom)**
>
> master/IBM%20Proof%20Of%20Concept/Zoom

Best Regards.

---

<div class="post-metadata">

**Author:** ![gianni.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/gianni.zoom/32/32523_2.png) [@gianni.zoom](https://devforum.zoom.us/u/gianni.zoom)\
**Post date:** [March 1, 2023, 8:40pm UTC](https://devforum.zoom.us/t/zoom-jwt-to-s2s-oauth/82610/10 "2023-03-01T20:40:04Z")

</div>

Okay thanks for sharing.

> [@todin](#):
>
> I have created oauth application on zoom side and i need to integrate with that workflow qradar. So thats why i need to change workflow jwt auth to s2s oauth on this workflow

You have to create a _Server-to-Server_ OAuth app, not an OAuth app: [https://marketplace.zoom.us/docs/guides/build/server-to-server-oauth-app/](https://marketplace.zoom.us/docs/guides/build/server-to-server-oauth-app/)

Then use the Client Id and Client Secret. Although in [these directions](https://github.com/IBM/IBM-QRadar-Universal-Cloud-REST-API/tree/master/IBM%20Proof%20Of%20Concept/Zoom#qradar-log-source-configuration), I do not see where you’re supposed to integrate the client credentials. Can you please clarify that part for me?

---

<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:** [March 4, 2024, 12:16pm UTC](https://devforum.zoom.us/t/zoom-jwt-to-s2s-oauth/82610/11 "2024-03-04T12:16:20Z")

</div>

Closed on March 4, 2024, 12:16pm UTC

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