To access an external service provider's OAuth 2.0 protected web service from an AS
ABAP, you need to provide credentials and an OAuth 2.0 client ID in the service
provider.
Context
The AS ABAP uses the credentials and the OAuth 2.0 client ID whenever users request an OAuth
2.0 token to access the service provider's application.
To generate an OAuth 2.0 client ID, you must register the AS ABAP in the service provider's
developer console as the resource server.
Proceed as follows:
Procedure
- Create a user account in your service provider's web site. Usually, you have to provide
user names and passwords and other data.
- Go to the authorization pane of your service provider's cloud project.
- Make sure you have activated the APIs you want to use.
- Go to your credentials.
- Enter the redirection URI of your AS ABAP's access settings. To make things easy, simply
copy it from the relevant field in transaction
OA2C_CONFIG and paste it into the
relevant field of the service provider's authorization pane. For more
information, see the related link.
Caution
This redirection URI must be accessible from the Internet because your service provider
might check its public availability. Otherwise your service provider
will not save your OAuth 2.0 client registration data in the
authorization dialog.
- Create a client ID with these credentials and with the redirection URI in the
service provider.
- Save your changes.