access token expiration lengthen | Community
Skip to main content
May 7, 2021
Solved

access token expiration lengthen

  • May 7, 2021
  • 2 replies
  • 6125 views

Hello I am trying to buld a post api from wordpress to adobe campaign and I am wondering how to extend the access token expiry length. Having it expire after

86399998 seconds isn't really sustainable so I need it to last longer. I have seen another post in 2019 that it can't be extended in analytics but is that still the case (https://experienceleaguecommunities.adobe.com/t5/adobe-analytics-questions/jwt-access-token-how-can-i-change-the-expiration/qaq-p/324806)? Alternavitely is there another option that I can use other than the access token? I am currently testing in postman
 
Any advice would be greatly appreciated
 
Cheers
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by DavidKangni

Hi,

 

You can get a JWT generation token python script from Adobe Support and update the expiry_time (see screenshot below)

 

Thanks,

David

2 replies

SatheeskannaK
Community Advisor
Community Advisor
May 7, 2021

Hi @seanie2,

 

Access tokens are by default set to valid for 24hours. You can't change/extend expiry of access token. 

 

In addition JWT Tokens are an open standard. Using a standard or open source library along with their private key to programmatically generate a JWT tokens. They then use their own generated JWT token to authenticate with adobe.io and exchange it for an API access token to use in subsequent calls to interact with adobe campaign.

 

You can use libraries listed here to setup token exchange programmatically.

https://www.adobe.io/authentication/auth-methods.html#!AdobeDocs/adobeio-auth/master/JWT/JWT.md

 

Thanks, SK

Thanks, Sathees
Seanie2Author
May 10, 2021
Hi SK, does that mean that using wordpress it can only be done using an external php file? so it can't be tested locally?
DavidKangni
Community Advisor
DavidKangniCommunity AdvisorAccepted solution
Community Advisor
May 7, 2021

Hi,

 

You can get a JWT generation token python script from Adobe Support and update the expiry_time (see screenshot below)

 

Thanks,

David

David Kangni
Seanie2Author
May 17, 2021
Hi David, do you know how to do this via php?