SAP Identity Directory API: Configure OAuth Bearer Authentication

A technical integration can authenticate to the Identity Directory API using an OAuth access token rather than embedding a user’s password in each request. The system-as-administrator scenario requires an appropriately authorized technical identity.

Configuration checklist

  1. In the Cloud Identity Services administration console, configure a system as administrator with the minimum permissions needed for the intended Identity Directory operations.
  2. Use the tenant’s documented token endpoint, generally /oauth2/token, and the supported client credentials authentication mechanism for that technical identity.
  3. Request an access token with the client_credentials grant type. Follow the system-as-administrator request section of the SAP Help guide, not the example intended for an ordinary relying-party application.
  4. Send the received token in the HTTP Authorization header using the Bearer scheme when calling the authorized Identity Directory API.

Begin with a limited read-only request. A 401 response calls for checking token validity, endpoint and authentication configuration; a 403 response warrants reviewing assigned permissions. Never include client secrets or bearer tokens in tickets, screenshots or application logs.

SAP Help: Configure the Client to Call Identity Authentication Token Endpoint for Client Credentials Flow

SAP Note: 3720972 (related topic).

You May Also Like

Leave a Reply?