Access Protected SAP Analytics Cloud Resources with OAuth Two-Legged Flow
- How to configure secure access to SAP Analytics Cloud resources with a two-legged OAuth flow
- The roles involved in the two- and three-legged OAuth flows
Prerequisites
- An administrator account on an SAP Analytics Cloud tenant
- An administrator account in the SAP Cloud Identity Authentication service tenant
- An administrator account on SAP Business Technology Platform
SAP Analytics Cloud (SAC) leverages the OAuth 2.0 framework to provide secure access to its resources exposed via REST APIs, for example, story APIs. SAC provides support for both two-legged and three-legged OAuth flows.
Both flows involve the following roles:
-
Resource Owner: User
The resource owner is the user who authorizes an application to access his or her account. The application’s access to the user account is limited to the “scope” of the authorization granted – for example, read or write access.
-
Client: Application
The client is the application that wants to access the user account. Before it can do so, the user must authorize the access, and the API must validate the authorization.
-
Resource / Authorization Server: API
The resource server hosts the protected user accounts. The authorization server verifies the identity of the user and, then, issues access tokens to the application.
In the two-legged flow, on the other hand, the user is not actively involved. Instead, the SAML bearer assertion token obtained during the login to the client application is exchanged with the SAP Analytic Cloud OAuth token behind the scenes.
An important factor to consider when you choose between the three-legged and two-legged flows is the customer landscape. Typically, you find a central IDP in an enterprise landscape. The purpose of a central IDP within an enterprise is to manage Identity federation and provide an SSO experience to end users across different applications. With this landscape, you should implement the two-legged flow to ensure a seamless OEM experience.























