Expand my Community achievements bar.

OAuth Refresh Token 14 days "by default" - Should we move to OAuth Server-to-Server?

Avatar

Level 2

Hello,

 

Our application needs to access Adobe Analytics data owned by our users, which we do through user authentication credentials via OAuth.
As mentioned in the Authentication API reference, refresh tokens "by default" expire after 14 days. This means that our users currently need to reconnect every 14 days for us to continue accessing their data.

 

We have two questions regarding this:

  • The phrase "by default" suggests there might be a way to modify the refresh token lifespan. Is it possible to extend its duration?
  • Since we want to avoid asking our users to reconnect every 14 days, we believe the appropriate solution would be to use OAuth Server-to-Server credentials. This would require our users to set up the credentials on their end and provide us with the client_id and client_secret. Is it the best solution?

 

Thank you in advance for your help.

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

3 Replies

Avatar

Community Advisor

Hi @SofienBe 

in my experience, the client_id/_secret works fine.

Create a new API project in https://developer.adobe.com/console and choose the default setting.

bjoern__koth_0-1727891398401.png

 

In there, you should find all you need

bjoern__koth_1-1727891486536.png

 

 

Cheers from Switzerland!


Avatar

Level 2

Thanks a lot for your answer!

So you confirm there is no way to modify the refresh token lifespan?

Avatar

Community Advisor

Frankly, I have always used the server-side approach. Maybe reach out to support on this

Cheers from Switzerland!