SAP OData V2 Connector > Connections for SAP OData V2 > Prepare for authentication
  

Prepare for authentication

You can configure basic, API key, authorization code, and client credentials authentication types to access OData V2-compliant applications in SAP.
Before you configure the connection properties, you need to keep the authentication details handy based on the authentication type that you want to use.

Basic

To connect to SAP OData V2 services using basic authentication, you need the SAP account user name and password.
Get the required details from the SAP application to which you want to connect.
For more information about basic authentication in SAP, see Basic authentication in the SAP documentation.

API key

To connect to SAP OData V2 services using API key authentication, you need a unique API key that SAP OData V2 Connector uses to authenticate the API calls made to the SAP OData endpoint.
Get the API key from the SAP application to which you want to connect.
For more information about how to generate and use an API key, see Add API keys to an environment in the SAP documentation.

Authorization code

To connect to SAP OData V2 services using the OAuth 2.0 authorization code, you need the SAP client ID, client secret, authorization token URL, access token URL, and access token.
Before you use OAuth 2.0 authorization code authentication, complete the following tasks:
After you import the .cer certificate into the cacerts file, you need to restart the Secure Agent.

Client credentials

To connect to SAP OData V2 services using OAuth 2.0 client credentials, you need the SAP client ID, client secret, access token URL, and access token.
Before you use OAuth 2.0 client credentials authentication, complete the following tasks:
After you import the .cer certificate into the cacerts file, you need to restart the Secure Agent.