The configuration of an OAuth 2.0 client in the AS ABAP ensures that users can access applications provided by a service provider -- for example, by SAP Cloud Platform.
Context
Procedure
Open SAP GUI.
Start transaction OA2C_CONFIG (OAuth 2.0 Clients) or enter the following URL in your browser:
Choose the OAuth 2.0 client profile you created earlier. The OAuth 2.0 client profile already contains the service provider type.
Enter the OAuth 2.0 client ID and choose OK. If you want to connect to an external service provider, you already received the OAuth 2.0 client ID during the registration of your OAuth 2.0 client at the service provider's web site.
The OAuth 2.0 client profile and the client ID appear in the General Settings section of the new OAuth 2.0 client.
Activate the grant types you want to use.
Enter the redirection URI server in the field Redirection URI Server with host name and port. The configuration screen uses this entry to produce the redirection URI. You can also use the URL of an SAP Web Dispatcher.
Go to Authorization Server Settings and enter the authorization server endpoint.
Enter the token endpoint accordingly.
Enter the client secret that you configured in the service provider and press ENTER. Obviously, both client secrets must be identical. You received a client secret after you registered your OAuth 2.0 client at the service provider's web site.
To verify the OAuth 2.0 scopes, you switch to the Scopes tab. The Profile column already contains the OAuth 2.0 client profile you created earlier in the AS ABAP. The Scope column displays the associated OAuth 2.0 scopes. To add further scopes, integrate the respective OAuth 2.0 client profiles containing these scopes or assign the scopes to the particular OAuth 2.0 client profile.