Create an OAuth2.0 Client with an Interactive Usage Purpose

Users with an administrator role can create OAuth2.0 clients with an interactive usage purpose and provide the client parameters to users who need to connect clients, tools, or apps to SAP Datasphere.

Context

You create an OAuth2.0 client with an Interactive Usage purpose:

Procedure

  1. In the side navigation area, select (System) Start of the navigation path Next navigation step End of the navigation path (Administration) Start of the navigation path Next navigation step App IntegrationEnd of the navigation path.
  2. Under Configured Clients, select Add a New OAuth Client.
  3. In the dialog, enter or review the following properties as appropriate:

    Property

    Description

    Name

    Enter a name to identify the OAuth client.

    OAuth Client ID

    [read-only] Displays the ID once the client is created.

    Purpose

    Select Interactive Usage.

    Authorization Grant

    [read-only] Authorization Code is automatically selected and cannot be changed.

    Secret

    [read-only] Allows the secret to be copied immediately after the client is created.

    Redirect URI

    Enter a URI to indicate to where the user will be redirected after authorization. If the URI has dynamic parameters, use a wildcard pattern (for example, https://redirect_host/**).

    The client, tool, or app that you want to connect is responsible for providing the redirect URI:

    Token Lifetime

    Enter a lifetime for the access token from a minimum of 60 seconds to a maximum of one day.

    Default: 60 minutes

    Refresh Token Lifetime

    Enter a lifetime for the refresh token from a minimum of 60 seconds to a maximum of 180 days.

    Default: 30 days

  4. Click Add to create the client and generate the ID and secret.
  5. Copy the secret, save it securely, and then close the dialog.
  6. Provide the following information to users who will use the client:

    Standard OAuth2 Authorization Flow

    OAuth2SAMLBearer Principal Propagation Flow

    • Client ID

    • Secret

    • Authorization URL (not required for clients with a Technical User purpose)

    • Token URL

    Users of a client with a Technical User purpose (which includes its own privileges and permissions) can then access their resource directly. Users of clients with other purposes must manually authenticate against the IDP in order to generate the authorization code before continuing with the remaining OAuth2.0 steps.
    • Client ID

    • Secret

    • OAuth2SAML Token URL

    • OAuth2SAML Audience

    Users of a client with a Technical User purpose can then access their resource directly. Users of clients with other purposes must authenticate with their third-party app, which has a trusted relationship with the IDP, and do not need to re-authenticate (see Add a Trusted Identity Provider). See also the blog Integrating with SAP Datasphere Consumption APIs using SAML Bearer AssertionInformation published on SAP site (published March 2024).