In Memory OAuth2 Account

In Memory OAuth2 Account

In this article

Overview

You can use this account type to connect API Suite Snaps with data sources that support Client credentials OAuth2 authentication. This account should be used when the access tokens provided by the Client Credentials grant type OAuth2 Authentication are short-lived (less than 30 minutes in time), as the account stores them in memory for reuse.

in-memory-oauth2-acct-overview.png

Prerequisites

  • Valid Client ID and Client secret.

Account Settings

  • Expression : JavaScript syntax to access SnapLogic Expressions to set field values dynamically (if enabled). If disabled, you can provide a static value. Learn more.

  • SnapGPT : Generates SnapLogic Expressions based on natural language using SnapGPT. Learn more.

  • Suggestion : Populates a list of values dynamically based on your Account configuration.

  • Upload : Uploads files. Learn more.

Learn more about the icons in the Snap Settings dialog.

Field Name

Field Type

Description

Field Name

Field Type

Description

Label*

 

 

String

Specify a unique label for the account.

 

Default Value: [None]
ExampleIn-memory OAuth2 Account

Client ID*

 

 

String

Specify the client ID associated with the account. You can create the Client ID as advised by your application provider.

 

Default Value: N/A
Examplep364e45x-953x-460p-9pb0-934xep16p693

Client secret*

 

 

String

The client secret associated with the account. You can create the client secret as advised by your application provider.


Default Value: N/A
ExampleABC123def456GHI789_jklMNO

Send client data as basic auth header

 

 

Checkbox

 

 

Select this checkbox to send the client information as a header to the OAuth endpoint.


Default stateDeselected

OAuth2 token endpoint*

 

 

String

 

Specify the URL of the endpoint (in the following format) that retrieves the token for an authenticated account. https://<endpoint name>.endpoint.com/oauth_token

Default Value: N/A
Examplehttps://snaplogic-demo.xyzcloud.com/oauth2/token

When the Snap encounters 401 or 403 errors, this account generates a new token and updates the cache.

Grant type

 

 

By default, this account uses Client Credentials Grant Type to obtain an access token using the Client ID and Client secret through the token endpoint URL.

Default Valueclient_credentials
Exampleclient_credentials

Token endpoint config

Use this field set to provide custom properties for the OAuth2 token endpoint.

Token endpoint parameter

 

String

Specify additional token endpoint parameters.

 

Default Value: N/A
Example: Scope

Token endpoint parameter value

 

String

Specify the value associated with the optional endpoint parameter defined above.

 

Default Value: N/A

Example: core.accounting.read core.approval.read

Authorize

After you configure the account settings, click the Authorize button to authenticate your account.

Snap Pack History

 


Related Links