Skip to Content
0
Jul 27, 2023 at 03:00 PM

Request with token received for OAuth Client with Purpose "API Access" get's OAuth redirect

206 Views

Hello SAP Datasphere Experts, Hi Jascha Kanngiesser,

I've created a OAuth Client with the Purpose "API Access" and given it this Access:

screenshot-2023-07-27-at-165209.png

With the REST Client script datasphere.http I'm able to retrieve the access_token but when I use it I get this response:

<html>
  <head>
    <link rel="shortcut icon"
      href="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" />
    <script>
      document.cookie="fragmentAfterLogin="+encodeURIComponent(location.hash)+";path=/;Secure;SameSite=None;";document.cookie="locationAfterLogin="+encodeURIComponent(location.href.split('#')[0].split(location.host)[1])+";path=/;Secure;SameSite=None;";document.cookie="signature=eo4Phc60EK9c8ghC%2F087ggqHL%2BQ%3D;path=/;Secure;SameSite=None;";location="https://69c4ebe6-9001-4fb8-82af-486a105b0b2e.authentication.eu10.hana.ondemand.com/oauth/authorize?response_type=code&client_id=sb-approuter-sac-saceu10!t3650&redirect_uri=https%3A%2F%2F69c4ebe6-9001-4fb8-82af-486a105b0b2e.eu10.hcs.cloud.sap%2Fsso%2Flogin%2Fcallback"</script>
  </head>
</html>
When I use instead the access_token that I got using the @sap/datasphere-cli I can call the endpoints without any issue. Could it be that the Catalog and Consumption Endpoints can't be used with the API Access Token?Best Regards
Gregor

Attachments