Expand my Community achievements bar.

"access_denied" message when requesting an auth token for the Adobe Analytics API

Avatar

Level 2

We’ve developed an integration with the Adobe Analytics API that allows clients to pull user and visit data for their campaigns directly into our campaign builder, enabling them to report on campaign performance.

 

Our integration uses the OAuth process, requiring someone from the client to reconnect through our site every two weeks to obtain a new refresh token. However, during the most recent reconnection attempt, instead of receiving a refresh token, an “access_denied” error message was returned instead.

 

Could this issue be related to the permissions of the individual attempting to reconnect, or might there be another cause for the “access_denied” error? I couldn’t find any relevant information in the documentation.

6 Replies

Avatar

Community Advisor and Adobe Champion

Unfortunately, that error message doesn't provide a lot of detail. I wish Adobe's error messages were more user friendly.

 

Your best bet would be to contact and work with Client Care... You can share the user account with them, provide more information about the request, and even run live tests with that account for them to get more details from the backend.

 

Good Luck!

Avatar

Adobe Champion

Hi @upliftertom ,

Not sure but this could be due to deprecation of OAuth method? I'd suggest you move to OAuth Server-to-Server integration if possible. It would not require you to obtain a new refresh token every two weeks.

 

Other issue could be - check if the API project has Web Services API enabled? If nothing works out, maybe as @Jennifer_Dungan suggested, reach out to client care.

 

Best,

Isha

Avatar

Level 2

Is Oauth deprecated too? I thought it was just the JWT method, and that wasn't due till next month?

 

We're going to explore the server-to-server integration

Avatar

Adobe Champion

Apologies but I thought you were using the old method which was deprecated before JWT even. It was also called as OAuth and I remember that requires you to authenticate every 14 days? If you are on the latest OAuth Server to Server method, then it won't be deprecated. As you mentioned, JWT is getting deprecated next month.

 

Can you please confirm which auth method you are using for your integration?

Avatar

Level 2

Yes, we were using the one where we have to reconnect every two weeks, surprised it has been working this long

Avatar

Adobe Champion

Then you may need to update the integration. It shouldn't take too much time as long as the system supports the newer integration? I can't see OAuth appearing in the console anymore as the authentication method.

 

More info on user authentication method (must have been the one you were using) - https://developer.adobe.com/developer-console/docs/guides/authentication/UserAuthentication/