Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

access token expiration lengthen

Avatar

Avatar
Validate 1
Level 1
Seanie2
Level 1

Likes

0 likes

Total Posts

3 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile

Avatar
Validate 1
Level 1
Seanie2
Level 1

Likes

0 likes

Total Posts

3 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile
Seanie2
Level 1

07-05-2021

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-...)? 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
Access token API key jwt

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Boost 250
MVP
DavidKangni
MVP

Likes

254 likes

Total Posts

367 posts

Correct Reply

150 solutions
Top badges earned
Boost 250
Validate 1
Give Back 5
Give Back 3
Give Back 25
View profile

Avatar
Boost 250
MVP
DavidKangni
MVP

Likes

254 likes

Total Posts

367 posts

Correct Reply

150 solutions
Top badges earned
Boost 250
Validate 1
Give Back 5
Give Back 3
Give Back 25
View profile
DavidKangni
MVP

07-05-2021

Hi,

 

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

 

DavidKangni_0-1620406610102.png

Thanks,

David

Answers (1)

Answers (1)

Avatar

Avatar
Shape 1
MVP
SatheeskannaK
MVP

Likes

87 likes

Total Posts

148 posts

Correct Reply

77 solutions
Top badges earned
Shape 1
Give Back 5
Give Back 3
Give Back
Boost 50
View profile

Avatar
Shape 1
MVP
SatheeskannaK
MVP

Likes

87 likes

Total Posts

148 posts

Correct Reply

77 solutions
Top badges earned
Shape 1
Give Back 5
Give Back 3
Give Back
Boost 50
View profile
SatheeskannaK
MVP

07-05-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