analytics-1.4-apis icon indicating copy to clipboard operation
analytics-1.4-apis copied to clipboard

Swagger UI OAuth doesn't use v2.0 endpoints

Open SaraRands opened this issue 4 years ago • 1 comments

According to the documentation https://github.com/AdobeDocs/analytics-1.4-apis, "The 1.4 APIs support JWT and OAuth authentication. You can follow the authentication documentation from the 2.0 Analytics APIs and use the access tokens to call either the 1.4 or 2.0 versions of the APIs."

However, the 1.4 Swagger UI https://adobedocs.github.io/analytics-1.4-apis/swagger-docs.html disagrees. When I click on Authorize, it tells me that the Authorization URL is https://authorize.omniture.com/authorize. This is not the same endpoint as the API v2.0 OAuth, which is https://ims-na1.adobelogin.com/ims/authorize (see documentation https://www.adobe.io/authentication/auth-methods.html#!AdobeDocs/adobeio-auth/master/OAuth/OAuth.md).

When I use the client_id and client_secret I can successfully use for 2.0 API OAuth in the 1.4 Swagger UI, I get the error: The client id supplied is invalid

Is the Swagger UI updated to use the same OAuth as API 2.0?

SaraRands avatar Sep 14 '20 21:09 SaraRands

While the 1.4 APIs will support the newer JWT authentication used by the 2.0 APIs we haven't updated the swagger UI to reflect that yet. Until early next year the 1.4 APIs will continue to support our legacy oAuth solution as well and that is what the swagger doc is currently referring to. Once that is retired we should be able to update.

nateprice7 avatar Sep 21 '20 22:09 nateprice7

We now support oAuth 2.0. See the docs.

ridmaur avatar Oct 25 '23 08:10 ridmaur