<?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: &amp;quot;JWT token is incorrectly formatted&amp;quot; error when trying to get an AdobeIO API access token in Adobe Campaign Standard Questions</title>
    <link>https://experienceleaguecommunities.adobe.com/t5/adobe-campaign-standard/quot-jwt-token-is-incorrectly-formatted-quot-error-when-trying/m-p/180814#M13876</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Damien,&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;you were right, thanks a lot for helping ! That's a shame the error message and the documentation are both so misleading about this... I was able to get an access token and i'm now trying to do a simple query as documented here:&amp;nbsp;&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://forums.adobe.com/external-link.jspa?url=https%3A%2F%2Fdocs.campaign.adobe.com%2Fdoc%2Fstandard%2Fen%2Fadobeio.html" rel="nofollow" target="_blank"&gt;https://docs.campaign.adobe.com/doc/standard/en/adobeio.html&lt;/A&gt;&lt;SPAN&gt;. I went through all the available documentation, and our adobe campaign instance, and I have no idea how to build a proper endpoint URL. What is supposed to be the "tenant"? Can't find this information. I tried various URLs, and i'm&amp;nbsp;getting various errors such as:&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Oops. Something went wrong. Check your URI and try again.&lt;/LI&gt;&lt;LI&gt;Bearer token of a technical account must be accompanied with a valid service token&lt;/LI&gt;&lt;LI&gt;Invalid Api Key&lt;/LI&gt;&lt;/UL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 09 Mar 2017 18:30:25 GMT</pubDate>
    <dc:creator>lorisg52723730</dc:creator>
    <dc:date>2017-03-09T18:30:25Z</dc:date>
    <item>
      <title>"JWT token is incorrectly formatted" error when trying to get an AdobeIO API access token</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-campaign-standard/quot-jwt-token-is-incorrectly-formatted-quot-error-when-trying/m-p/180809#M13871</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am having an issue obtaining an access token using JWT too. I am getting "JWT token is incorrectly formatted, and can not be decoded" error whatever JWT token I use.&lt;BR /&gt;Here is an example request I am doing&lt;/P&gt;&lt;PRE class="prettyprint linenums" data-language=""&gt;curl -X POST -H "Content-Type: application/x-www-form-urlencoded" -H "Cache-Control: no-cache" -d 'client_id=***&amp;amp;client_secret=***&amp;amp;jwt_token=eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiYWRtaW4iOnRydWV9.EkN-DOsnsuRjRO6BxXemmJDm3HbxrbRzXglbN2S4sOkopdU4IsDxTI8jO19W_A4K8ZPJijNLis4EZsHeY559a4DFOd50_OqgHGuERTqYZyuhtF39yxJPAjUESwxk2J5k_4zM3O-vtd1Ghyo4IbqKKSy6J9mTniYJPenn5-HIirE' "https://ims-na1.adobelogin.com/ims/exchange/jwt"&lt;/PRE&gt;&lt;P&gt;client_id and client_secret are obfuscated here, but they are correct when I'm getting the error since omitting or tampering one of them will result in a "client_id/client_secret are incorrect" error instead.&lt;BR /&gt;&lt;SPAN&gt;Concerning the jwt_token, I tried various token, I tried base64 encoding the all token, etc. It is always returning the same "JWT token is incorrectly formatted" error. In the example, I used a JWT example from &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://forums.adobe.com/external-link.jspa?url=https%3A%2F%2Fjwt.io%2F%23debugger" rel="nofollow" target="_blank"&gt;https://jwt.io/#debugger&lt;/A&gt;&lt;SPAN&gt;, so it is correctly formatted and can be decoded.&lt;/SPAN&gt;&lt;BR /&gt;I am not sure how is supposed to be formatted the jwt_token parameter value.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Mar 2017 18:21:38 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-campaign-standard/quot-jwt-token-is-incorrectly-formatted-quot-error-when-trying/m-p/180809#M13871</guid>
      <dc:creator>lorisg52723730</dc:creator>
      <dc:date>2017-03-07T18:21:38Z</dc:date>
    </item>
    <item>
      <title>Re: "JWT token is incorrectly formatted" error when trying to get an AdobeIO API access token</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-campaign-standard/quot-jwt-token-is-incorrectly-formatted-quot-error-when-trying/m-p/180810#M13872</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;you can follow process explain here &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://forums.adobe.com/external-link.jspa?url=https%3A%2F%2Fdocs.campaign.adobe.com%2Fdoc%2Fstandard%2Fen%2Fadobeio.html" rel="nofollow" target="_blank"&gt;https://docs.campaign.adobe.com/doc/standard/en/adobeio.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;But your payload (the part after the ".") is in your example&lt;/P&gt;&lt;PRE class="prettyprint linenums" data-language=""&gt;{ "sub": "1234567890", "name": "John Doe", "admin": true }&lt;/PRE&gt;&lt;P&gt;but to work, it must look like:&lt;/P&gt;&lt;PRE class="prettyprint linenums" data-language=""&gt;{ "exp" : &amp;lt;expiry_time&amp;gt;, "iss" : "&amp;lt;your_org_id@AdobeOrg&amp;gt;", "sub" : "&amp;lt;your_tech_account_id&amp;gt;@techacct.adobe.com", "aud" : "https://ims-na1.adobelogin.com/c/&amp;lt;your_api_key&amp;gt;", "https://ims-na1.adobelogin.com/s/ent_campaign_sdk" : True }&lt;/PRE&gt;&lt;P&gt;As explained in the documentation, you can also see common authentication page:&amp;nbsp;&lt;A href="https://www.adobe.io/products/target/docs/reference/authentication/StepstogainAPIaccess" style="-webkit-print-color-adjust: exact; color: rgb(0, 105, 214); font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, &amp;quot;Hiragino Sans GB&amp;quot;, Arial, sans-serif;" target="_blank"&gt;https://www.adobe.io/products/target/docs/reference/authentication/StepstogainAPIaccess&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Damien&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Mar 2017 13:35:28 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-campaign-standard/quot-jwt-token-is-incorrectly-formatted-quot-error-when-trying/m-p/180810#M13872</guid>
      <dc:creator>ddphotoFr</dc:creator>
      <dc:date>2017-03-08T13:35:28Z</dc:date>
    </item>
    <item>
      <title>Re: "JWT token is incorrectly formatted" error when trying to get an AdobeIO API access token</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-campaign-standard/quot-jwt-token-is-incorrectly-formatted-quot-error-when-trying/m-p/180811#M13873</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Damien, thanks for helping. The JWT in my post was an example, but of course I tried with a proper JWT first. The error returned is not saying there is an issue with the content of the JWT, but that it is malformed and can't be decoded. That's why I also tried with a JWT from jwt.io which is known to be properly formed. So, either the error message is misleading, either my problem has nothing to do with the content of the JWT but its form.&lt;/P&gt;&lt;P&gt;Do you have an example of how the jwt_token parameter is supposed to look like? Should it be re-encoded with base64? Should I only pass the part after the "." ? I tried various JWT librairies, and they all properly encode / then decode the payload with my private key using RS256 algo. The only system complaining about not being able to decode&amp;nbsp;the JWTs is the IMS adobelogin endpoint.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Mar 2017 15:34:37 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-campaign-standard/quot-jwt-token-is-incorrectly-formatted-quot-error-when-trying/m-p/180811#M13873</guid>
      <dc:creator>lorisg52723730</dc:creator>
      <dc:date>2017-03-08T15:34:37Z</dc:date>
    </item>
    <item>
      <title>Re: "JWT token is incorrectly formatted" error when trying to get an AdobeIO API access token</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-campaign-standard/quot-jwt-token-is-incorrectly-formatted-quot-error-when-trying/m-p/180812#M13874</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The format is correct:&lt;/P&gt;&lt;PRE class="prettyprint linenums" data-language=""&gt;&amp;lt;base64(header)&amp;gt;.&amp;lt;base64(payload)&amp;gt;.&amp;lt;base64(sign)&amp;gt;&lt;/PRE&gt;&lt;P&gt;Did you check the expiration time?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Mar 2017 17:02:42 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-campaign-standard/quot-jwt-token-is-incorrectly-formatted-quot-error-when-trying/m-p/180812#M13874</guid>
      <dc:creator>ddphotoFr</dc:creator>
      <dc:date>2017-03-08T17:02:42Z</dc:date>
    </item>
    <item>
      <title>Re: "JWT token is incorrectly formatted" error when trying to get an AdobeIO API access token</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-campaign-standard/quot-jwt-token-is-incorrectly-formatted-quot-error-when-trying/m-p/180813#M13875</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I was able to reproduce your issue and solve it. For me, the issue comes from the optional &lt;STRONG&gt;jti&lt;/STRONG&gt; parameter. If your organization doesn't need this, just remove it. Otherwise you may have to handle it properly (increase it at each request).&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Damien&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Mar 2017 15:34:23 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-campaign-standard/quot-jwt-token-is-incorrectly-formatted-quot-error-when-trying/m-p/180813#M13875</guid>
      <dc:creator>ddphotoFr</dc:creator>
      <dc:date>2017-03-09T15:34:23Z</dc:date>
    </item>
    <item>
      <title>Re: "JWT token is incorrectly formatted" error when trying to get an AdobeIO API access token</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-campaign-standard/quot-jwt-token-is-incorrectly-formatted-quot-error-when-trying/m-p/180814#M13876</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Damien,&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;you were right, thanks a lot for helping ! That's a shame the error message and the documentation are both so misleading about this... I was able to get an access token and i'm now trying to do a simple query as documented here:&amp;nbsp;&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://forums.adobe.com/external-link.jspa?url=https%3A%2F%2Fdocs.campaign.adobe.com%2Fdoc%2Fstandard%2Fen%2Fadobeio.html" rel="nofollow" target="_blank"&gt;https://docs.campaign.adobe.com/doc/standard/en/adobeio.html&lt;/A&gt;&lt;SPAN&gt;. I went through all the available documentation, and our adobe campaign instance, and I have no idea how to build a proper endpoint URL. What is supposed to be the "tenant"? Can't find this information. I tried various URLs, and i'm&amp;nbsp;getting various errors such as:&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Oops. Something went wrong. Check your URI and try again.&lt;/LI&gt;&lt;LI&gt;Bearer token of a technical account must be accompanied with a valid service token&lt;/LI&gt;&lt;LI&gt;Invalid Api Key&lt;/LI&gt;&lt;/UL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Mar 2017 18:30:25 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-campaign-standard/quot-jwt-token-is-incorrectly-formatted-quot-error-when-trying/m-p/180814#M13876</guid>
      <dc:creator>lorisg52723730</dc:creator>
      <dc:date>2017-03-09T18:30:25Z</dc:date>
    </item>
    <item>
      <title>Re: "JWT token is incorrectly formatted" error when trying to get an AdobeIO API access token</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-campaign-standard/quot-jwt-token-is-incorrectly-formatted-quot-error-when-trying/m-p/180815#M13877</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;tenant is your organization name.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;You may find it your marking cloud URL: &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://forums.adobe.com/external-link.jspa?url=https%3A%2F%2F" rel="nofollow" target="_blank"&gt;https://&lt;/A&gt;&lt;SPAN&gt;&amp;lt;tenant_id&amp;gt;.marketing.adobe.com&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;So, if your Marketing Cloud URL is &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://forums.adobe.com/external-link.jspa?url=https%3A%2F%2Fac-sample.marketing.adobe.com" rel="nofollow" target="_blank"&gt;https://ac-sample.marketing.adobe.com&lt;/A&gt;&lt;SPAN&gt;, you should use&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE style="-webkit-print-color-adjust: exact; font-family: Monaco, &amp;quot;Andale Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace; padding: 14px; margin-top: 0px; margin-bottom: 18px; line-height: 16px; font-size: 11px; border: 1px solid rgb(217, 217, 217); color: rgb(115, 115, 115);"&gt;&lt;CODE style="-webkit-print-color-adjust: exact; font-family: Monaco, &amp;quot;Andale Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace; padding: 0px; border-radius: 3px;"&gt;&lt;A href="https://mc.adobe.io/" target="test_blank"&gt;https://mc.adobe.io/&lt;/A&gt;&lt;/CODE&gt;ac-sample&lt;CODE style="-webkit-print-color-adjust: exact; font-family: Monaco, &amp;quot;Andale Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace; padding: 0px; border-radius: 3px;"&gt;/campaign/{rest-of-url}&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Damien&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Mar 2017 09:55:36 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-campaign-standard/quot-jwt-token-is-incorrectly-formatted-quot-error-when-trying/m-p/180815#M13877</guid>
      <dc:creator>ddphotoFr</dc:creator>
      <dc:date>2017-03-15T09:55:36Z</dc:date>
    </item>
    <item>
      <title>Re: "JWT token is incorrectly formatted" error when trying to get an AdobeIO API access token</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-campaign-standard/quot-jwt-token-is-incorrectly-formatted-quot-error-when-trying/m-p/399927#M13878</link>
      <description>Im trying from .Net using JWT.io or Jose.JWT.Encode(payload, rsa, Jose.JwsAlgorithm.RS256); but still im getting this error. "{\"error_description\":\"JWT token is incorrectly formatted, and can not be decoded.\",\"error\":\"invalid_token\"}"</description>
      <pubDate>Fri, 12 Mar 2021 11:22:19 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-campaign-standard/quot-jwt-token-is-incorrectly-formatted-quot-error-when-trying/m-p/399927#M13878</guid>
      <dc:creator>Prakash_s_sv</dc:creator>
      <dc:date>2021-03-12T11:22:19Z</dc:date>
    </item>
  </channel>
</rss>

