How can I refresh OAuth 2.0 token before It expire | Community
Skip to main content
Level 2
January 8, 2019
Solved

How can I refresh OAuth 2.0 token before It expire

  • January 8, 2019
  • 5 replies
  • 7359 views

Hi,

I am accessing Omniture report data using API 2.0 and doing it successfully. I want to schedule this API call every week for a regular reporting. But OAuth 2.0 token expires after 8 hours. How can I make sure that OAuth regenerate authentication token itself and verify before API call? I am using Postman for it.

Please let me know.

regards

Lalit

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Brian_Kent_Watson

Refresh token flow is not supported by Adobe Analytics V2 APIs under Adobe IO.

In the context of Adobe Analytics, Adobe IO's oAuth authentication should be used by applications that authenticate a human user for the duration of a single session. It is not suitable for use by applications that need "headless" server-to-server, service-token, or long-running authentications.

In Q1 2019 (coming very soon), Analytics will support JWT authentication for situations that require server-to-server, service-token, or other long-running authentications.

We're working to update the Analytics documentation to reflect these specific ways in which the Analytics authentication under Adobe IO differs from the more general Adobe IO authentication mechanisms.

5 replies

Brian_Kent_Watson
Adobe Employee
Brian_Kent_WatsonAdobe EmployeeAccepted solution
Adobe Employee
January 29, 2019

Refresh token flow is not supported by Adobe Analytics V2 APIs under Adobe IO.

In the context of Adobe Analytics, Adobe IO's oAuth authentication should be used by applications that authenticate a human user for the duration of a single session. It is not suitable for use by applications that need "headless" server-to-server, service-token, or long-running authentications.

In Q1 2019 (coming very soon), Analytics will support JWT authentication for situations that require server-to-server, service-token, or other long-running authentications.

We're working to update the Analytics documentation to reflect these specific ways in which the Analytics authentication under Adobe IO differs from the more general Adobe IO authentication mechanisms.

ltapariaAuthor
Level 2
March 18, 2019

Hi,

Can you please share documentation for above? I would like to use it for Analytics end point.

regards

Lalit

Brian_Kent_Watson
Adobe Employee
Adobe Employee
March 19, 2019
ltapariaAuthor
Level 2
March 28, 2019

Hi, That is not my requirement. As mentioned in one of your last comment "In Q1 2019 (coming very soon), Analytics will support JWT authentication for situations that require server-to-server, service-token, or other long-running authentications."

It's almost Q1 2019, Do we have documentation ready?

regards

Lalit

Brian_Kent_Watson
Adobe Employee
Adobe Employee
March 28, 2019

See my comment above.