Expand my Community achievements bar.

Join us at Adobe Summit 2024 for the Coffee Break Q&A Live series, a unique opportunity to network with and learn from expert users, the Adobe product team, and Adobe partners in a small group, 30 minute AMA conversations.
SOLVED

Creating JWT token to access Adobe I/O for Analytics

Avatar

Level 2

Hi All,

We have been trying to create an JWT token for the access of Adobe I/O for Analytics, as we have some permission limits we cannot use launch. Thus we have came across the following questions

  1. How to create JWT token without using the Launch console?
  2. Which is the best Adobe approved way to generate the token?

As we are trying to generate the token based on the following documents, the token seems not working:

  1. GitHub - jpadilla/pyjwt: JSON Web Token implementation in Python
  2. https://stormpath.com/blog/jwt-java-create-verify

    3. https://developer.atlassian.com/cloud/jira/platform/understanding-jwt/

The second method gives the following error:

Could not match JWT signature to any of the bindings

For the first : Could not match JWT signature to any of the bindings

The method 3 is not working as expected.

Please assist with this ASAP!

Thanks in advance!

1 Accepted Solution

Avatar

Correct answer by
Level 2

As nice as the mentioned Medium post is, it does not help a bit when using the JWT token. As here I can only recommend using Postman, taking the example curl-command from the JWT generation page (of the integration) and importing it to Postman.

Then you find that under the body part you have additional key/value pairs to fill in for the request to work:Bildschirmfoto 2019-08-13 um 10.16.48.png

These next to your regular Header key/value pairs:

Bildschirmfoto 2019-08-13 um 10.18.12.png

Maybe this might help some others a little bit as I was nearly throwing my Macbook out of the window in frustration regarding the non functional Adobe documentation.

View solution in original post

7 Replies

Avatar

Correct answer by
Level 2

As nice as the mentioned Medium post is, it does not help a bit when using the JWT token. As here I can only recommend using Postman, taking the example curl-command from the JWT generation page (of the integration) and importing it to Postman.

Then you find that under the body part you have additional key/value pairs to fill in for the request to work:Bildschirmfoto 2019-08-13 um 10.16.48.png

These next to your regular Header key/value pairs:

Bildschirmfoto 2019-08-13 um 10.18.12.png

Maybe this might help some others a little bit as I was nearly throwing my Macbook out of the window in frustration regarding the non functional Adobe documentation.

Avatar

Level 1

May I add an additional question. How do you guys refresh the token. The process on how to create it once i get - but the token expires after 24 hours.

I have build a web application (using javascript, html5 and css)...and i need to have my token refreshed "programatically".

Any ideas?

Avatar

Level 2

Hi peterc82255801​,

actually I sadly have no idea how to do it programmatically, as you need to login to Adobe every time you do it.

At least if you do it in postman and with a Bearer Token, not with a JWT token:

Bildschirmfoto 2019-11-18 um 16.02.31.png

So not sure if any Adobe Admin might be helpful here.

Best of luck - and if you find a way I would be very happy to hear of it, as I am trying to build a tool for my team.

Best regards,
Sven

Avatar

Level 2

great to hear this question, I do have the same issue for regeneration. Usually we regenerate token manually. Any Adobe experts can suggest a way to automate this process?

Avatar

Employee Advisor

I don't think there is a programmatic approach to refresh Oauth token as it's tied to your user login, but you can create a service account integration (JWT) which you can re-create using your application.

Avatar

Level 10
Do any of the answers below answer your initial question? If so, can you select one of them as the correct answer? If none of the answers already provided answer your question, can you provide additional information to better help the community solve your question?