Use of the API Gateway and OAuth to Authenticate Applications
The APIs on the SAP Ariba Developer Portal are protected by the API Gateway and OAuth authentication. API Gateway authenication is based on the application key (apikey) of your application. Only valid application keys enable requests to be accepted by the gateway. We further support the two-legged OAuth protocol or Client Credentials authorization flow in which a registered client application requests and receives an access token from the OAuth authentication server. All API requests needs to have both a valid application key and a valid OAuth token unique to the client application making the request.
-
The registered client makes a one time request to send an authorization request to the OAuth server, and receives an access token and a refresh token in return.
-
Include the request header apikey with value of the application key in the headers of each API call your application makes.
-
The registered client includes the access token in all requests for access to protected resources from the resource server.
-
When the access token expires, the client should present the refresh token to request a new access token and updated refresh token, and then use the new access token to request protected resources.
-
Optional. You can configure client applications on the SAP Ariba developer portal to require mutual authentication before an OAuth token can be generated or refreshed. For details, see Managing Security Certificates for Mutual Authentication.