OAuth Refresh Token 14 days "by default" - Should we move to OAuth Server-to-Server? | Adobe Higher Education
Skip to main content
Level 1
October 2, 2024
Question

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

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.

Ce sujet a été fermé aux réponses.

1 commentaire

bjoern__koth
Community Advisor and Adobe Champion
Community Advisor and Adobe Champion
October 2, 2024

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.

 

In there, you should find all you need

 

 

Cheers from Switzerland!
SofienBeAuteur
Level 1
October 3, 2024

Thanks a lot for your answer!

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

bjoern__koth
Community Advisor and Adobe Champion
Community Advisor and Adobe Champion
October 3, 2024

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

Cheers from Switzerland!