Configure OAuth authorization code flow to use in Zero Copy Connector for ERP
Configure OAuth authorization code flow for SAP and use OAuth to authenticate and authorize users for OData endpoints.
Avant de commencer
Role required: admin
Remarque :
The OAuth authorization code flow can be used to call OData endpoints (create, read, and update). At this time, OAuth cannot be used for tables, BAPI, or RFC.
To understand OAuth, see Set up OAuth and OAuth Inbound.
Consult with your SAP administrator:
- Obtain the client ID and client secret. You need this information for the application registry form.
- Ask if the refresh token is a one-time usable token. A scheduled job that retrieves information from SAP runs once per day. If you need to run the scheduled job more often or on demand, discuss the access token and refresh token options. For more information, see Manage OAuth tokens.
- Ask them to enable the gateway services to expose the OData endpoints you want to use.
- Ask them to create a scope in SAP for the exposed OData endpoints and give you the name and OAuth scope. You need this to configure the scope on the application registry form.
Procédure
- If you have already set up OAuth (for example, with REST via platform features), you can use it in Zero Copy Connector for ERP and skip to step 3.
-
To set up OAuth, register your application by navigating to .
-
Create a credential by navigating to .
-
Add a connection to the Zero Copy Connector for ERP HTTP alias by navigating to .