access token expiration lengthen | Adobe Higher Education
Skip to main content
May 7, 2021
해결됨

access token expiration lengthen

  • May 7, 2021
  • 2 답변들
  • 6142 조회

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
이 주제는 답변이 닫혔습니다.
최고의 답변: 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 답변

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
Seanie2작성자
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
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
Seanie2작성자
May 17, 2021
Hi David, do you know how to do this via php?