Setting Up OAuth Profile and OAuth Configuration

  1. Creating OAuth2.0 Client Profile
    1. Login in to the S/4 On-Premise backend system - test client (S/4 HANA Release 2023).

    2. Start the Object Navigator- transaction SE80.

    3. Choose the Development Object in the dropdown list.

    4. To create a development object, choose Start of the navigation pathCreate Next navigation step More Next navigation step OAuth 2.0 Client ProfileEnd of the navigation path in the context menu of the object name.
    5. Enter the object name in the Client Profile field of the popup as <your_oauth_profile_name>.

    6. Choose the type of service provider as DEFAULT.
  2. Configure the OAuth2.0 Client
    1. Go to transaction OA2C_CONFIG to configure OAuth2.0.
    2. Click on Create.
    3. Select the OAuth2.0 Client Profile from the dropdown as created previously with <your_oauth_profile_name>.

      Provide a custom configuration name in your namespace <your_oauth_configuration_name>, and

      Provide the OAuth 2.0 Client ID as copied from Finding Rest API Credentials step 6c.
    4. Maintain the Client Secret as copied from Finding Rest API Credentials step 6d.
    5. Under Authorization Server Settings, provide the Token Endpoints as:

      Provide Authorization Endpoint by copying the URL from Finding Rest API Credentials step 6e and append the string/oauth/authorize to this URL. As the string https:// is already provided in the beginning, so it's not required to repeat it.

      Provide Token Endpoint by copying the URL from Finding Rest API Credentials step 6e and append the string /oauth/token to this URL. As the string https:// is already provided in the beginning, so it's not required to repeat it.
    6. Under Access Settings:
      • Enter the Client Authentication as Basic

      • Enter the Resource Access Authentication as Header Field

      • Select the Grant Type as Client Credentials.
    7. Click on Save. The OAuth2.0 configuration name is <your_oauth_configuration_name>.

OAuth2.0 configuration is completed.