SAP BTP Java/HTML5 apps (Neo)

Follow this procedure to set up SAP Business Technology Platform as a proxy system, from and to which you can provision user-to-groups assignments for Java/HTML5 applications that run on SAP BTP, Neo environment.

Prerequisites

  • You have created a new Platform API OAuth client, with Authorization Management scopes. Save the Client ID and Client Secret as you'll need them when you configure your proxy system. Make sure you save the client secret as you cannot retrieve it later.

    To learn how to create a Platform API client and what are the required platform service roles, see: Create a Platform API Client

Context

The Identity Provisioning service helps companies to automatically manage the user-to-groups assignments for Java/HTML5 applications running on the SAP Business Technology Platform. For this aim, the service reuses data from an active company user store.

For this scenario, SAP Business Technology Platform is a proxy system. That is, the Identity Provisioning service represents the various authorization mappings managed by Authorization Management REST API of SAP BTP as one generic SCIM 2.0 system, with some limitations. For more information, see: Using the Authorization Management REST API

Procedure

  1. Open your subaccount in SAP BTP cockpit (valid for OAuth authentication to the Identity Provisioning proxy system).
  2. Create a technical user with the necessary authorizations. It will later be used by the external consumer to connect to Identity Provisioning.
    • For Certificate-based authentication, follow the procedure in Manage Certificates for Inbound Connection → SAP BTP, Neo Environment

    • For OAuth authentication, proceed as follows:

      1. Go to Start of the navigation pathSecurity Next navigation step OAuth Next navigation step ClientsEnd of the navigation path and choose Register New Client.

      2. From the Subscription combo box, select <provider_subaccount>/ipsproxy.

      3. From the Authorization Grant combo box, select Client Credentials.

      4. In the Secret field, enter a password (client secret) and remember it. You will need it later, for the repository configuration in the external system.

      5. Copy/paste and save (in a notepad) the generated Client ID. You will need it later, too.

      6. From the left-side navigation, choose Start of the navigation pathSubscriptions Next navigation step Java Applications Next navigation step ipsproxyEnd of the navigation path .

      7. From the left-side navigation, choose Start of the navigation pathRoles Next navigation step IPS_PROXY_USEREnd of the navigation path.

      8. Choose Assign and enter oauth_client_<client_ID>.

        For <client_ID>, enter the one you have saved in the previous main step.

  3. Access the Identity Provisioning UI.
  4. Add SAP BTP Java/HTML5 apps (Neo) as a proxy system. For more information, see Add New Systems.
  5. Choose the Properties tab to configure the connection settings for your system.

    Mandatory Properties

    Property Name

    Description & Value

    Type

    Enter: HTTP

    URL

    Enter: https://api.<SAP_BTP_host>/authorization/v1/accounts/<SAP_BTP_account>

    Examples:
    • (Europe – Rot) https://api.hana.ondemand.com/authorization/v1/accounts/abc123xyz

    • (Japan – Tokyo) https://api.jp1.hana.ondemand.com/authorization/v1/accounts/abc123xyz

    ProxyType

    Enter: Internet

    Authentication

    Enter: BasicAuthentication

    User

    Enter the Client ID of the new Platform API OAuth client created for the Authorization Management API (see the prerequisites).

    Password

    (Credential) Enter the Client Secret of the new Platform API OAuth client created for the Authorization Management API (see the prerequisites).

    OAuth2TokenServiceURL

    Enter: https://api.<SAP_BTP_host>/oauth2/apitoken/v1

    Examples:

    • (Europe – Rot) https://api.hana.ondemand.com/oauth2/apitoken/v1

    • (US East – Sterling) https://api.us3.hana.ondemand.com/oauth2/apitoken/v1

    (Optional) hcp.read.group.roles

    If you set this property to true, the Identity Provisioning will read the following additional attributes for a SAP BTP group:

    • Application roles

    • Group mappings, defined by your identity provider

    (Optional) hcp.patch.response.with.resource

    Use this property when you execute hybrid scenarios with SAP BTP as a SCIM proxy system, and you update an entity (mostly relevant to groups, like when you change the members of a group) via a PATCH request.

    Set this property to true. This way, the successful PATCH request will return a response code 200 (OK) back to the consumer client application with a payload body containing the updated attributes of the relevant group.

    To learn what additional properties are relevant to this system, see List of Properties. You can use the main search, or filter properties by the Name or System Type columns.

  6. Configure the transformations.

    Transformations are used to map the user attributes from the data model of the source system to the data model of the target system, and the other way around. The Identity Provisioning offers a default transformation for the SAP BTP Java/HTML5 apps (Neo) proxy system, whose settings are displayed under the Transformations tab after saving its initial configuration.

    You can change the default transformation mapping rules to reflect your current setup of entities in your proxy system. For more information, see:

    Manage Transformations

    SAP BTP: Authorization Management API

    The SAP BTP Java/HTML5 apps (Neo) proxy connector supports SCIM PATCH operation.

    The read transformation takes the group name from the source system. However, SAP BTP groups names sometimes contain characters that do not fit the SCIM URI specification. As Identity Provisioning service cannot directly use these characters as a SCIM resource ID, it needs to first encode them into base32 ASCII format. The intermediate JSON logic of the proxy system will then use the new encoded ID and write it to the target system. That means, the ID will be decoded in the proxy write transformation during the patchEntity operation. For more information, see: Transformation Expressions → patchEntity

    Default read and write transformations:

    Read Transformation

    Write Transformation

  7. Connect the external consumer to Identity Provisioning with the technical user you have created in step 2.

    If the external consumer system is SAP Identity Management, you can export the newly created proxy system as a SCIM repository from Identity Provisioning and import it in SAP Identity Management. This will create a SCIM repository in SAP Identity Management where most of the repository constants will be automatically filled in. You need to provide the technical user credentials that you have set up in step 2 and the SCIM assignment method as described below:

    • For AUTH_USER and AUTH_PASSWORD, enter your client ID and secret.

    • For the SCIM_ASSIGNMENT_METHOD constant, make sure the value is PUT.

Next Steps

When a proxy system is connected to an external backend system (in the case of SAP Identity Management this means the exported CSV file is imported into the Identity Management Admin UI and a repository is configured), you can start managing the users and groups into this external system. Usually, the first operation is the initial load of the existing entities into your external system. When this load has finished, changes in the external system, such as creating new users or updating existing ones, can trigger CRUD requests back to the proxy system.

To see an example with SAP Identity Management, see Hybrid Scenario: SAP Identity Management → sections Next Steps and Future Identity Lifecycle.