Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

To create an OAuth2 app in Coupa:

  1. Log into the Coupa portal. The URL format for Coupa instances:
    Customer instances: https://{organization_name}.coupahost.com 
    Partner and demo instances: https://{organization_name}.coupacloud.com

  2. Navigate to Setup > Integrations > Oauth2/OpenID Connect Clients.
    Note: You can also search for ‘oauth’ in the Find it fast search box.

    Image ModifiedImage Modified


  3. Click Create in Oauth2/OpenID Connect Clients page.

    Image Modified


  4. From the Grant type list, select Client credentials.

    Image Modified


  5. Specify the details for the client, such as Name, Login, Contact First Name, Contact Last Name, and Contact Email as shown in the image below:

    Image Modified

    Note: You must provide a unique login ID for Client Credentials Grant type,else Coupa displays an error, Login has already been taken.

  6. Select the Scopes you want to include in this API setup.  
    Note: To create a client app, you must select at least one scope and the scopes which provide access to specific APIs required for your functionality.

  7. Click Save to save the client.  
    The client Identifier and Secret are generated. You can toggle the Show/Hide link to display and copy the client secret.

    Image Modified

You can use the values of Client ID and Client Secret to gain access to the Coupa APIs. When you create a new Open Connect client, access is granted to a specific application or user client for specific areas of the product, defined by scopes.

Locate/Define Information Required to Create your Coupa OAuth2 Account

Specify the values required to create a successful Coupa OAuth2 account.

  1. Navigate to the Coupa Snap of your choice and configure the Coupa OAuth2 Account with the following details:

    • Client ID: A Public Identifier for your app. Provide the Client ID that is auto-generated after creating the app in the Coupa portal.

    • Client Secret: Secret value known only to the app and the auth server. Provide the Client Secret that is auto-generated after creating the app in the Coupa portal.

      Image Added
  2. Click Authorize.
    You will be redirected to the login page of Coupa.

  3. Log into Coupa and accept the permissions.
    The Access token is populated.

  4. Click Apply after the authorization is successful.

Scopes

Coupa scopes take the form of service.object.right. For example, core.accounting.read or core.accounting.write. Navigate to the Scope management page in Coupa portal to find the list of scopes and their underlying permissions. To view the API permissions associated with each scope, click the Scope link. Learn more about Scopes available in Coupa.

Scope with offline_access : Client Credentials grant type provides only access token and expiry.

Requesting an Access Token to use in Coupa Dynamic OAuth2 account

...

The response from the curl command is a JSON object that contains the access token.

Scopes

Coupa scopes take the form of service.object.right. For example, core.accounting.read or core.accounting.write. Navigate to the Scope management page in Coupa portal to find the list of scopes and their underlying permissions. To view the API permissions associated with each scope, click the Scope link. Learn more about Scopes available in Coupa.

...

access

...

token

...

Locate/Define Information Required to Create your Coupa OAuth2 Account

Specify the values required to create a successful Coupa OAuth2 account.

  1. Navigate to the Coupa Snap of your choice and configure the Coupa OAuth2 Account with the following details:

    • Client ID: A Public Identifier for your app. Provide the Client ID that is auto-generated after creating the app in the Coupa portal.

    • Client Secret: Secret value known only to the app and the auth server. Provide the Client Secret that is auto-generated after creating the app in the Coupa portal.

      Image Removed
  2. Click Authorize.
    You will be redirected to the login page of Coupa.

  3. Log into Coupa and accept the permissions.
    The Access token is populated.

  4. Click Apply after the authorization is successful.

...

Related Content