<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Receive JWT token in Webex for Developers</title>
    <link>https://community.cisco.com/t5/webex-for-developers/receive-jwt-token/m-p/4608931#M795</link>
    <description>&lt;P&gt;a&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;{
    "id": "0d139e49-fd0c-4c4c-8804-c3b436a4a930",
    "data": {
        "activity": {
            "id": "53ca6cd0-d1df-11ec-81a1-ebf6ac2a1e16",
            "objectType": "activity",
            "url": "https://conv-a.wbx2.com/conversation/api/v1/activities/53ca6cd0-d1df-11ec-81a1-ebf6ac2a1e16",
            "published": "2022-05-12T10:36:05.533Z",
            "verb": "post",
            "actor": {
                "id": "nam.n@binance.com",
                "objectType": "person",
                "displayName": "Nam Nguyen (Infra Tech - UTC+7)",
                "orgId": "25ae0134-b107-42fd-8c63-f776f2300739",
                "emailAddress": "nam.n@binance.com",
                "entryUUID": "0285679a-b824-49ef-8715-530f8cb54e85",
                "type": "PERSON"
            },
            "object": {
                "objectType": "comment",
                "displayName": "eyJhbGciOiAiZGlyIiwgImtpZCI6ICJrbXM6Ly9rbXMtdXMud2J4Mi5jb20va2V5cy83YzRlNmM5Ny1jMzAyLTQzYzMtYmE5MS1iZDk2NTBmNzRkOTEiLCAiZW5jIjogIkEyNTZHQ00ifQ..RoE4yaMuQ23TAQAl.Mb6WIA.p9CwTeN8ML_ArmsPGcCJig"
            },
            "target": {
                "id": "6a1c5450-d1b5-11ec-892f-25f67c216e5e",
                "objectType": "conversation",
                "url": "https://conv-a.wbx2.com/conversation/api/v1/conversations/6a1c5450-d1b5-11ec-892f-25f67c216e5e",
                "published": "2022-05-12T05:36:04.117Z",
                "participants": {
                    "items": []
                },
                "activities": {
                    "items": []
                },
                "deletedActivityIds": [],
                "tags": [
                    "ONE_ON_ONE"
                ],
                "globalId": "Y2lzY29zcGFyazovL3VzL1JPT00vNmExYzU0NTAtZDFiNS0xMWVjLTg5MmYtMjVmNjdjMjE2ZTVl"
            },
            "clientTempId": "1968c6a2-3391-41e2-8a9b-408d77fea519",
            "encryptionKeyUrl": "kms://kms-us.wbx2.com/keys/7c4e6c97-c302-43c3-ba91-bd9650f74d91",
            "vectorCounters": {
                "sourceDC": "a-",
                "counters": {
                    "a-": 27
                }
            }
        },
        "eventType": "conversation.activity"
    },
    "timestamp": 1652351765569,
    "trackingId": "CLIENT_fbb57891-3a39-4268-b3de-0f14f952a475",
    "alertType": "full",
    "headers": {
        "data.activity.target.lastReadableActivityDate": "2022-05-12T10:36:05.533Z",
        "data.activity.target.owningOrg": "25ae0134-b107-42fd-8c63-f776f2300739"
    },
    "sequenceNumber": 918,
    "filterMessage": false
}&lt;/PRE&gt;</description>
    <pubDate>Thu, 12 May 2022 11:12:40 GMT</pubDate>
    <dc:creator>jamie guo</dc:creator>
    <dc:date>2022-05-12T11:12:40Z</dc:date>
    <item>
      <title>Receive JWT token</title>
      <link>https://community.cisco.com/t5/webex-for-developers/receive-jwt-token/m-p/4608820#M790</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;I receive&lt;/P&gt;&lt;P&gt;`&lt;SPAN&gt;eyJhbGciOiAiZGlyIiwgImtpZCI6ICJrbXM6Ly9rbXMtdXMud2J4Mi5jb20va2V5cy83YzRlNmM5Ny1jMzAyLTQzYzMtYmE5MS1iZDk2NTBmNzRkOTEiLCAiZW5jIjogIkEyNTZHQ00ifQ..v3iME44EPvhov37q.CIXlzg.tXHjceO6JTAn1cNoHSVhG` from websocket,&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;{
  "alg": "dir",
  "kid": "kms://kms-us.wbx2.com/keys/7c4e6c97-c302-43c3-ba91-bd9650f74d91",
  "enc": "A256GCM"
}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 May 2022 07:51:15 GMT</pubDate>
      <guid>https://community.cisco.com/t5/webex-for-developers/receive-jwt-token/m-p/4608820#M790</guid>
      <dc:creator>jamie guo</dc:creator>
      <dc:date>2022-05-12T07:51:15Z</dc:date>
    </item>
    <item>
      <title>Re: Receive JWT token</title>
      <link>https://community.cisco.com/t5/webex-for-developers/receive-jwt-token/m-p/4608824#M791</link>
      <description>&lt;P&gt;This is the Tracking ID&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;ROUTER_627CBACF-E06E-01BB-4266-0AFE58B64266&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 12 May 2022 07:52:46 GMT</pubDate>
      <guid>https://community.cisco.com/t5/webex-for-developers/receive-jwt-token/m-p/4608824#M791</guid>
      <dc:creator>jamie guo</dc:creator>
      <dc:date>2022-05-12T07:52:46Z</dc:date>
    </item>
    <item>
      <title>Re: Receive JWT token</title>
      <link>https://community.cisco.com/t5/webex-for-developers/receive-jwt-token/m-p/4608854#M792</link>
      <description>&lt;P&gt;It's not clear exactly what you're issue is, can you give a brief description of what you're doing?&lt;BR /&gt;I checked the trackingId and found a&amp;nbsp;POST to &lt;A href="https://webexapis.com/v1/messages" target="_blank" rel="noopener"&gt;https://webexapis.com/v1/messages&lt;/A&gt;&amp;nbsp;, which seems to fail with a 502 error, is this what you're reporting?&lt;BR /&gt;&lt;BR /&gt;Did you use that JWT as the token to make this request with?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If yes, please note that JWTs cannot be used with our APIs. They need to be exchanged for an access token, see here:&amp;nbsp;&lt;A href="https://developer.webex.com/docs/guest-issuer#:~:text=Exchanging%20for%20an%20Access%20Token" target="_blank" rel="noopener"&gt;https://developer.webex.com/docs/guest-issuer#:~:text=Exchanging%20for%20an%20Access%20Token&lt;/A&gt;&amp;nbsp;. Once you have exchanged it, you need to ensure the guest user is added to the room where you want to send the message. You would do this with the&amp;nbsp;&lt;A href="https://developer.webex.com/docs/api/v1/memberships/create-a-membership" target="_self"&gt;/create-a-membership API&lt;/A&gt; but first you need to get the personId of this guest user, using the&amp;nbsp;&lt;A href="https://developer.webex.com/docs/api/v1/people/get-my-own-details" target="_self"&gt;/get-my-own-details people API&lt;/A&gt;&amp;nbsp;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If your issue is something else, please provide steps on how you reproduced it. Also provide details on the websocket you're using, how it's created and so on.&lt;/P&gt;</description>
      <pubDate>Thu, 12 May 2022 08:53:02 GMT</pubDate>
      <guid>https://community.cisco.com/t5/webex-for-developers/receive-jwt-token/m-p/4608854#M792</guid>
      <dc:creator>Raffaele Lagana</dc:creator>
      <dc:date>2022-05-12T08:53:02Z</dc:date>
    </item>
    <item>
      <title>Re: Receive JWT token</title>
      <link>https://community.cisco.com/t5/webex-for-developers/receive-jwt-token/m-p/4608860#M793</link>
      <description>&lt;P&gt;I have created a bot, and only one of my colleague's messages is a JWT token others are normal messages.&lt;/P&gt;</description>
      <pubDate>Thu, 12 May 2022 08:53:25 GMT</pubDate>
      <guid>https://community.cisco.com/t5/webex-for-developers/receive-jwt-token/m-p/4608860#M793</guid>
      <dc:creator>jamie guo</dc:creator>
      <dc:date>2022-05-12T08:53:25Z</dc:date>
    </item>
    <item>
      <title>Re: Receive JWT token</title>
      <link>https://community.cisco.com/t5/webex-for-developers/receive-jwt-token/m-p/4608866#M794</link>
      <description>&lt;P&gt;Ok, it's not really clear to me what you mean by that. What do you mean when you say 'one of my colleagues messages is a JWT token' .. Do you mean that one of your colleagues uses a JWT token to create messages or do you mean that the message itself is a JWT token... or something else?&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;I also don't understand what you mean when you say 'other messages are normal'.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I Think it would be best if you explain what the full flow of events is, as in what you are doing exactly and what's being used. If you can provide this in step by step form that would help.&lt;/P&gt;</description>
      <pubDate>Thu, 12 May 2022 09:06:06 GMT</pubDate>
      <guid>https://community.cisco.com/t5/webex-for-developers/receive-jwt-token/m-p/4608866#M794</guid>
      <dc:creator>Raffaele Lagana</dc:creator>
      <dc:date>2022-05-12T09:06:06Z</dc:date>
    </item>
    <item>
      <title>Re: Receive JWT token</title>
      <link>https://community.cisco.com/t5/webex-for-developers/receive-jwt-token/m-p/4608931#M795</link>
      <description>&lt;P&gt;a&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;{
    "id": "0d139e49-fd0c-4c4c-8804-c3b436a4a930",
    "data": {
        "activity": {
            "id": "53ca6cd0-d1df-11ec-81a1-ebf6ac2a1e16",
            "objectType": "activity",
            "url": "https://conv-a.wbx2.com/conversation/api/v1/activities/53ca6cd0-d1df-11ec-81a1-ebf6ac2a1e16",
            "published": "2022-05-12T10:36:05.533Z",
            "verb": "post",
            "actor": {
                "id": "nam.n@binance.com",
                "objectType": "person",
                "displayName": "Nam Nguyen (Infra Tech - UTC+7)",
                "orgId": "25ae0134-b107-42fd-8c63-f776f2300739",
                "emailAddress": "nam.n@binance.com",
                "entryUUID": "0285679a-b824-49ef-8715-530f8cb54e85",
                "type": "PERSON"
            },
            "object": {
                "objectType": "comment",
                "displayName": "eyJhbGciOiAiZGlyIiwgImtpZCI6ICJrbXM6Ly9rbXMtdXMud2J4Mi5jb20va2V5cy83YzRlNmM5Ny1jMzAyLTQzYzMtYmE5MS1iZDk2NTBmNzRkOTEiLCAiZW5jIjogIkEyNTZHQ00ifQ..RoE4yaMuQ23TAQAl.Mb6WIA.p9CwTeN8ML_ArmsPGcCJig"
            },
            "target": {
                "id": "6a1c5450-d1b5-11ec-892f-25f67c216e5e",
                "objectType": "conversation",
                "url": "https://conv-a.wbx2.com/conversation/api/v1/conversations/6a1c5450-d1b5-11ec-892f-25f67c216e5e",
                "published": "2022-05-12T05:36:04.117Z",
                "participants": {
                    "items": []
                },
                "activities": {
                    "items": []
                },
                "deletedActivityIds": [],
                "tags": [
                    "ONE_ON_ONE"
                ],
                "globalId": "Y2lzY29zcGFyazovL3VzL1JPT00vNmExYzU0NTAtZDFiNS0xMWVjLTg5MmYtMjVmNjdjMjE2ZTVl"
            },
            "clientTempId": "1968c6a2-3391-41e2-8a9b-408d77fea519",
            "encryptionKeyUrl": "kms://kms-us.wbx2.com/keys/7c4e6c97-c302-43c3-ba91-bd9650f74d91",
            "vectorCounters": {
                "sourceDC": "a-",
                "counters": {
                    "a-": 27
                }
            }
        },
        "eventType": "conversation.activity"
    },
    "timestamp": 1652351765569,
    "trackingId": "CLIENT_fbb57891-3a39-4268-b3de-0f14f952a475",
    "alertType": "full",
    "headers": {
        "data.activity.target.lastReadableActivityDate": "2022-05-12T10:36:05.533Z",
        "data.activity.target.owningOrg": "25ae0134-b107-42fd-8c63-f776f2300739"
    },
    "sequenceNumber": 918,
    "filterMessage": false
}&lt;/PRE&gt;</description>
      <pubDate>Thu, 12 May 2022 11:12:40 GMT</pubDate>
      <guid>https://community.cisco.com/t5/webex-for-developers/receive-jwt-token/m-p/4608931#M795</guid>
      <dc:creator>jamie guo</dc:creator>
      <dc:date>2022-05-12T11:12:40Z</dc:date>
    </item>
    <item>
      <title>Re: Receive JWT token</title>
      <link>https://community.cisco.com/t5/webex-for-developers/receive-jwt-token/m-p/4608933#M796</link>
      <description>&lt;P&gt;If you see from the above json payload I receive from your WebSocket, you'll see the displayName is&lt;/P&gt;&lt;PRE&gt;eyJhbGciOiAiZGlyIiwgImtpZCI6ICJrbXM6Ly9rbXMtdXMud2J4Mi5jb20va2V5cy83YzRlNmM5Ny1jMzAyLTQzYzMtYmE5MS1iZDk2NTBmNzRkOTEiLCAiZW5jIjogIkEyNTZHQ00ifQ..RoE4yaMuQ23TAQAl.Mb6WIA.p9CwTeN8ML_ArmsPGcCJig&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 May 2022 11:14:15 GMT</pubDate>
      <guid>https://community.cisco.com/t5/webex-for-developers/receive-jwt-token/m-p/4608933#M796</guid>
      <dc:creator>jamie guo</dc:creator>
      <dc:date>2022-05-12T11:14:15Z</dc:date>
    </item>
    <item>
      <title>Re: Receive JWT token</title>
      <link>https://community.cisco.com/t5/webex-for-developers/receive-jwt-token/m-p/4608936#M798</link>
      <description>&lt;P&gt;So, I use data.activity.id combine it into:&amp;nbsp;&lt;SPAN&gt;ciscospark://us/MESSAGE/53ca6cd0-d1df-11ec-81a1-ebf6ac2a1e16, and base64 it&amp;nbsp; to call the api&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;/v1/messages/Y2lzY29zcGFyazovL3VzL01FU1NBR0UvNTNjYTZjZDAtZDFkZi0xMWVjLTgxYTEtZWJmNmFjMmExZTE2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;it return me the&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;eyJhbGciOiAiZGlyIiwgImtpZCI6ICJrbXM6Ly9rbXMtdXMud2J4Mi5jb20va2V5cy83YzRlNmM5Ny1jMzAyLTQzYzMtYmE5MS1iZDk2NTBmNzRkOTEiLCAiZW5jIjogIkEyNTZHQ00ifQ..RoE4yaMuQ23TAQAl.Mb6WIA.p9CwTeN8ML_ArmsPGcCJig&lt;/PRE&gt;</description>
      <pubDate>Thu, 12 May 2022 11:24:19 GMT</pubDate>
      <guid>https://community.cisco.com/t5/webex-for-developers/receive-jwt-token/m-p/4608936#M798</guid>
      <dc:creator>jamie guo</dc:creator>
      <dc:date>2022-05-12T11:24:19Z</dc:date>
    </item>
  </channel>
</rss>

