Creating an OAuth 2.0 Client Profile in the AS ABAP
An OAuth 2.0 client profile in the AS ABAP lists the OAuth 2.0 scopes you want to access within the service provider.
Context
The OAuth 2.0 scopes define the services this user wants to access (see the related link). Every time you request an access token for the service provider, the service provider compares the scopes requested by the AS ABAP with those configured in the service provider itself. The list of available scopes for this user must be identical to the scopes stored in the AS ABAP.
Procedure
Open SAP GUI.
Start the object navigator (transaction SE80).
Choose Development Object in the dropdown list.
To create a development object in the SAP namespace, choose CreateOAuth 2.0 Client Profile in the context menu of the object name.
Enter the object name in the Client Profile field of the popup.
Choose the type of the service provider. The following service provider types are available:
ABAP (AS ABAP service provider)
DEFAULT
HANA_CLOUD_PLATFORM
JAM (SAP JAM service provider)
Custom-defined service provider types (see the related link).
Save your changes in the next popup.
To assign the OAuth 2.0 scopes to an OAuth 2.0 client profile, add a new row in the Scopes tab.