cancel
Showing results for 
Search instead for 
Did you mean: 

SAP Analytics Cloud OAuth 2.0 API Usage

Hello,

we are currently attempting to make use of SAC OAuth 2.0 to query a story via the Open Story URL (see https://api.sap.com/api/URL_API/resource). We followed this guide: https://blogs.sap.com/2018/04/20/sap-analytics-cloud-apis-getting-started-guide/#3legged_impl

During the setup a number of basic questions arose:

Choosing the three-legged approach, a Redirect URI is required. Going from the explanation in the blog, we assumed that we are to enter the story URI. This is declined by the wizard, so it seems we misunderstood the explanation. How to determine the correct Redirect URI? FYI we simply intend to validate the API calls with http requests from our local machine.

Next, testing various redirect URIs, we perform a GET request with OAuth client credentials to the endpoint /oauth2/api/v1/authorize. This should return an authorization code, correct? The reponse status code is 200, but no code is returned and the request is labelled invalid. Nonetheless we can receive a token POSTing with OAuth client credentials to /oauth2/api/v1/token?grant_type=client_credentials.

Using this bearer token to perform a GET on the Open Story URL returns a code 500 Internal Server Error.

We assume that the problem lies in our OAuth client setup and the redirect URI specifically, but we cannot find a solution.

Your help is appreciated. Thank you in advance.

JaySchwendemann
Active Contributor
0 Kudos

Cheers, did you solve your problem? If so, mind sharing 😄

Accepted Solutions (0)

Answers (0)