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
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Adobe Analytics 2.0 API authentication flow

clownfish2
Level 1
Level 1

I note that in the OAuth documentation that: 

The default expiry of access tokens is 24 hours. You can refresh an access token without prompting the user for permission again even if a user is not present. The refresh token, by default, expires in 2 weeks.

Is there a way to change the default expiration for the refresh token? In addition, is there any way to request a new refresh token without re-authenticating? I'm wondering if there is any way for an application to use the OAuth flow for longer than 2 weeks or if there is simply no way to use OAuth if the application should persist for more than 2 weeks.  In addition, I don't see any information about how long the JWT authentication persists for.  How long does JWT authentication persist for?

1 Reply
ishans52004352
Employee
Employee

Hi @clownfish2 ,

You will need to programmatically refresh these tokens through some custom code. There isn't a standard code or script available to refresh the tokens. Further, the expiration of JWT token can be set to 24 hours, at max, and the expiry of the access token is 24 hours, by default and it can't be changed.

Thank you!

clownfish2
Level 1
Level 1
Hi @ishans52004352 - that's not my question. We're fine programatically refreshing ACCESS TOKENS. However, I don't see any documentation on refreshing the REFRESH TOKENS. Can you please link me to documentation on how to refresh refresh tokens and how many times we can refresh refresh tokens?