Set Up Third-Party Access with OAuth Clients
As an administrator, if you want to provide third-party access to protected SAP Analytics Cloud content, you must first set up secure delegated authentication using Open Authorization (OAuth) protocols. OAuth is an open standard that enables a trusted identity provider to authenticate users when information is passed between SAP Analytics Cloud and other systems without sharing actual credentials.
-
Users with Read and Update permissions for System Information.
-
System Owner, Admin, and BI Admin standard application roles.
-
Configured Clients: In this section, you can set up and manage OAuth clients to access the SAP Analytics Cloud content.
-
Managed Clients: In this section, you can review the details of OAuth clients that are added as part of your Unified Customer Landscape. The information for managed OAuth clients is read-only and cannot be edited.
Prepare to Add OAuth Clients
SAP Analytics Cloud can be hosted either on an SAP BTP Neo environment or on SAP BTP Cloud Foundry environment. Before you add OAuth Clients, you must determine which environment your tenant is hosted on viewing the Landscape Type in your Profile. For more information, see Edit Your User Settings.
Add a New OAuth Client (SAP BTP Neo environment)
Procedure
If you selected Interactive Usage, do the following:
-
Under Authorization Grant, select the authorization method your clients will use to obtain an access token. There are two options available: Authorization Code or Client Credentials.
Authorization Method
Steps
Authorization Code
-
Provide an Authorization Code Lifetime. The lifetime is the duration that an authorization code will remain valid. Once this period is over, clients can no longer use the existing authorization code to obtain access tokens and refresh tokens. An administrator can set both the value and unit. Available time units include days, hours, and minutes.
-
(Optional) Select Confidential. If selected, third-party applications must provide a secret value to obtain an OAuth access token to use with SAP Analytics Cloud. Enter a Secret value, and the Lifetime of the secret value. This is the duration that the secret remains valid. Once this period is over, an administrator must reset the secret value. This lifetime should be provided in days. For example, 30 days.
-
Enter a Redirect URI. This is the URI where access or refresh tokens must be returned to.
-
Enter the Token Lifetime.
When the access token expires, clients must use a valid refresh token to obtain a new access token. An administrator can set both the value and unit. Available time units include days, hours, and minutes. The lifetime value must be a positive integer. If this value is not provided, the lifetime value will be infinite by default.
-
Enter the Refresh Token Lifetime.
An administrator can set both the value and unit of the refresh token lifetime. Available time units include days, hours, and minutes. The lifetime value must be a positive integer. If this value is not provided, the lifetime value will be infinite by default.
Client Credentials
-
Enter a Secret value, and the Lifetime of the secret value. This is the duration that the secret remains valid. Once this period is over, an administrator must reset the secret value. This lifetime should be provided in days. For example, 30 days.
-
Enter the Token Lifetime.
When the access token expires, clients must use a valid refresh token to obtain a new access token. An administrator can set both the value and unit. Available time units include days, hours, and minutes.The lifetime value must be a positive integer. If this value is not provided, the lifetime value will be infinite by default.
-
-
Select Add.
If you selected API Access, do the following:
-
Choose at least one API option from the Access list. Each option allows a third-party application access to the selected public API:
-
Activities: View user activities in your system.
-
Analytics Content Network Integration: Transport supported content between tenants using the content network.
-
Analytics Hub: Use Analytics Hub APIs in your system.
-
Calendar Events: View, copy, and update calendar events in your system.
-
Content Management: Work with items available on the Content Network.
-
Data Export Service: Retrieve data from SAP Analytics Cloud.
-
Data Import Service: Import fact and master data to your system.
-
Modeling: Create models from views of live SAP HANA systems which might be created. For example, from ACN via public API services.
-
Query Validation Service: Use the query validation service.
-
Resource Permissions: Manage permission settings of resources in your system.
-
Story Handling: Delete, rename and copy stories in your system.
-
Story Listing: Access a list of stories in your system.
-
Translation Service: Use translation service APIs in your system.
-
User Provisioning: Manage users in your system.
-
-
Enter a Secret value, and the Lifetime of the secret value.
This is the duration that the secret remains valid. Once this period is over, an administrator must reset the secret value. This lifetime should be provided in days. For example, 30 days.
-
Enter the Token Lifetime.
When the access token expires, clients must use a valid refresh token to obtain a new access token. An administrator can set both the value and unit. Available time units include days, hours, and minutes.
The lifetime value must be a positive integer. If this value is not provided, the lifetime value will be infinite by default.
-
Select Add.
Add a New OAuth Client (SAP BTP Cloud Foundry environment)
-
From the side navigation, choose Administration.
-
Choose the App Integration tab.
-
Under Configured Clients, select Add an OAuth Client.
-
In the dialog, add a name and client ID for the OAuth client.
-
From the Purpose list, select the intended use for your OAuth client:
-
Interactive Usage (default)
The interactive usage functionality in these clients still requires a valid SAML-based user context and does not relate to the API Access functionality. Interactive usage is gained through an OAuth Authorization code flow (needing SAML-based assertion).
If you selected Interactive Usage, the Authorization Grant is automatically set to Authorization Code. You must enter a Redirect URI. The URI must be the exact URI where the authorization code is sent. If the URI has dynamic parameters, use a wildcard pattern for the URI. For example, https://redirect_host/**
-
API Access
OAuth Clients created with this option have API access permission grants based on selected access scopes. An API access OAuth client allows a third-party application to access public APIs. See the Authorize API Access for OAuth Clients section for more information about authorizing your application.
If you selected API Access, choose at least one API option from the Access list. Your selection will dictate which APIs the OAuth Client has access to:-
Activities: View user activities in your system.
-
Analytics Content Network Integration: Transport supported content between tenants using the content network.
-
Analytics Hub: Use Analytics Hub APIs in your system.
-
Calendar Events: View, copy, and update calendar events in your system.
-
Content Management: Work with items available on the Content Network.
-
Data Export Service: Retrieve data from SAP Analytics Cloud.
-
Data Import Service: Import fact and master data to your system.
-
File Repository Read: Access metadata about all the resources stored in the Files repository of SAP Analytics Cloud.
-
Modeling: Create models from views of live SAP HANA systems which might be created. For example, from ACN via public API services.
-
Query Validation Service: Use the query validation service.
-
Resource Permissions: Manage permission settings of resources in your system.
-
Story Handling: Delete, rename and copy stories in your system.
-
Story Listing: Access a list of stories in your system.
-
Translation Service: Use translation service APIs in your system.
-
User Provisioning: Manage users in your system. Select this option to use the SCIM 2.0 API. For more information, see SAP Analytics Cloud REST API.
You must also choose an Authorization Grant type for your OAuth client:-
Client Credentials should be used when client application is accessing its own resources, or when the permission to access resources has been granted by the resource owner via another mechanism. To use the SCIM 2.0 API, select this option. For more information, see SAP Analytics Cloud REST API.
-
SAML 2.0 Bearer should be used when user context is passed using SAML or to control access based on user permissions using SAML. This option requires specific client-side infrastructure to support SAML.
-
-
-
You must provide some the following information to your client application:
-
Authorization URL: The OAuth 2.0 Authorization URL.
-
Token URL: The OAuth 2.0 Token Service URL.
-
OAuth2SAML Token URL: The OAuth 2.0 Token Service URL to be used in the OAuth 2.0 SAML Bearer Assertion workflow.
-
OAuth2SAML Audience: The audience to be used by the OAuth 2.0 SAML Bearer Assertion workflow.
If you are using Interactive Usage, you must provide the Authorization URL and Token URL.
If you are using API Access with Client Credentials, you must provide the Token URL.
If you are using API Access with SAML 2.0 Bearer, you must provide the OAuth2SAML Token URL, and OAuth2SAML Audience.
-
-
Set the Token Details. You can set the duration in days, hours, and minutes. The lifetime value must be a positive integer.
-
Token Lifetime: Can be set between 60 seconds and 86400 seconds. When the access token expires, clients must use a valid refresh token to obtain a new access token.
-
Refresh Token Lifetime: Can be set between 60 seconds and 15552000 seconds.
If you are using Interactive Usage, you can set both the Token Lifetime and Refresh Token Lifetime.
If you are using API Access, you can only set the Token Lifetime.
-
-
Select Add. A client Secret will be automatically generated.
-
Select Copy Secret and save the secret for reference. You will not be able to view or edit the secret again. If you lose the secret, you must delete the OAuth client from SAP Analytics Cloud and create another one to generate a new secret.
-
Select Done.
Authorize API Access for OAuth Clients
If you selected API Access as the Purpose for the OAuth client, follow these steps to authorize a third party application to use the public APIs without a SAML assertion:
-
Perform a POST HTTPS call to the following address:
<Token URL>?grant_type=client_credentials
<Token URL> is the Token URL listed in the OAuth Clients section of the App Integration page.
-
Use basic authentication, and set the OAuth client ID as the user and the secret as the password.
This call returns an access token.
-
Access the required public API endpoint with the following headers:
Header name
Value
Notes
Authorization
Bearer <Token>
<Token> is the access token returned by the previous step.
x-sap-sac-custom-auth
True
Add a Trusted Identity Provider
The OAuth 2.0 SAML Bearer Assertion workflow allows a third-party application access to protected SAP Analytics Cloud resources without prompting users to log in when there is an existing SAML assertion from the third-party application identity provider.
If you use the OAuth 2.0 SAML Bearer Assertion workflow option when adding an OAuth client, you must add a trusted identity provider to SAP Analytics Cloud. Both SAP Analytics Cloud and the OAuth client must be configured with the same identity provider.
-
From the side navigation, choose Administration.
-
Choose the App Integration tab.
-
In Trusted Identity Providers, select Add a Trusted Identity Provider.
-
In the dialog, enter a unique name for the trusted identity provider. This name is used only for identification purposes and will appear in the list of trusted identity providers.
-
Enter the identity provider name. For example, if a third-party application running on an SAP Business Technology Platform (BTP) system, this value is the local provider name of the BTP account. The Provider Name must meet the following criteria:
-
It must be unique.
-
It can contain only alphabet characters (a-z & A-Z), numbers (0-9), underscores (_), dots (.), and hyphens (-).
-
It cannot exceed 36 characters.
-
-
Provide signing certificate information for the third-party application server. The signing certificate information must be in X.509 Base64 encoded format.
-
Select Add.
-
The identity providers that you added will appear in lists on the App Integration page. Hover over an identity provider and select Edit to update information or Delete to delete it. You may need to use the Authorization URL and Token URL listed here to complete setup on your OAuth clients.

