Analytics API 1.4 / OAuth 2.0 | Community
Skip to main content
October 17, 2023
Question

Analytics API 1.4 / OAuth 2.0

  • October 17, 2023
  • 3 replies
  • 1363 views

 

Please confirm if I can do the following with the Analytics API 1.4

 

  1. OAuth 2.0 redirect to a whitelabel domain e.g. `https://*/some/path/here`
  2. Refresh tokens that we can use to get new access tokens as necessary (offline_access scope request errors, but it does return a refresh token without it)
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

3 replies

watwatwatAuthor
October 18, 2023

Further context:  

  • I am getting a refresh token through the Oauth 2.0 flow even though I am unable to include the `offline_access` scope.
  • Adobe Analytics is the only API associated with this project
  • This project does not list `offline_access` under its scopes
  • I am getting a 400 Bad Request `{"error":"access_denied"}` from the `token/v3` endpoint
watwatwatAuthor
October 18, 2023

Also, why doesn't Adobe show the user consent screen with the list of scopes?  It just approves and redirects back.

Level 5
October 19, 2023

Hi @watwatwat 

 

Adobe Analytics provides access to its APIs using OAuth 2.0 for authentication and authorization. Regarding your specific query:

 

OAuth 2.0 Redirect: Adobe Analytics typically requires you to specify a predefined redirect URI when setting up OAuth 2.0 authorization. Using a white label domain in the format “https://*/some/path/here” is not a common practice in OAuth 2.0. You usually need to provide a specific, pre-registered redirect URI. Please refer to Adobe's documentation to find out what types of redirect URIs are supported and how to configure them.


Refresh Tokens: The use of refresh tokens and their availability can be determined by the configuration of the OAuth 2.0 provider, in this case, Adobe Analytics. The offline_access scope is commonly used to request refresh tokens, allowing you to obtain new access tokens without user intervention.

 

watwatwatAuthor
October 19, 2023

Hello, thanks for the reply.  

 

The offline_access scope is not listed in the Projects OAuth Web App credentials scope, does this mean it's impossible to refresh an access token for Adobe Analytics?  This is a blocker for our clients.