Application Configuration in Coupa Portal for Dynamic OAuth2 Token Account


Overview

Snaps in the Coupa Snap Pack use the Coupa OAuth2 account to access the Coupa application. For the OAuth2 account to authorize successfully, to create and configure a connected application corresponding to the account.

Dynamic OAuth2 Account: You must generate a token outside of SnapLogic to use in the Dynamic OAuth2 account.

Request an Access Token to use in the Coupa Dynamic OAuth2 Account

For the Dynamic OAuth2 account, you must request an access token after creating a client in the portal. The token is automatically accepted and generated. Client credentials require no consent, and an HTTPS POST or REST POST Snap to generate an access token right request can be made directly to Coupa. 

The following example is a request for an access token using cURL
curl -X POST -H "Content-Type: application/x-www-form-urlencoded" -d "client_id=<CLIENT_ID>&grant_type=client_credentials&scope=<SPACE_SEPARATED_LIST_OF_SCOPES>&client_secret=<CLIENT_SECRET>" <https://<INSTANCE_DOMAIN>/oauth2/token>

The following image shows how to generate an access token through the Postman application:

You can use the generated token in the Dynamic OAuth2 account, as shown in the following image:

Related Content