Microsoft Entra ID OAuth2 Account

Overview

You can configure your accounts in SnapLogic using the Designer or Manager. You can use this account type to connect Microsoft Entra ID Snaps with data sources that use Azure Active Directory OAuth2 account.

Prerequisites

Account settings

Note: Learn about the common controls in the Snap settings dialog.
Field/Field set Description
Label*

String

Specify a unique label for the account.

Default value: N/A

Tenant domain name*

String

Specify your "onmicrosoft.com" domain name. You can also use custom domain names. Learn more: Add Custom Domain.

Default value: accountingsnaplogic.onmicrosoft.com

Example: accountingsnaplogic.onmicrosoft.com

Client ID*

String

Specify the client ID that you obtain after creating an app in Azure Directory portal.

Default value: N/A

Example: 222b0666b2bbb22222b22b2b2b222bb

Client secret

String

Specify the Application Secret that was created for the Application ID in the portal. The client secret can be created by following the steps of the application provider.

Default value: N/A

Example: 66b2bbb22222b22b2b2b222bb

Access token*

String

Auto-generated after authorization.

The access token is retrieved when setting up the account for the endpoint. There, the OAuth2 flow will be executed and the resulting access token will be stored in this property. The access token might be refreshable, in which case an optional refresh token can be stored. The user must get a new access token if the access token has expired and no refresh token was defined or both the access and the refresh token have expired.

Default value: N/A

Example: <Value is encrypted>

Refresh token

String

Auto-generated after authorization.

The refresh token is retrieved when setting up the account for the endpoint. The OAuth2 flow is executed and the resulting refresh token is stored in this field. If the refresh token is stored, then the access token can be refreshed automatically before it expires.

Default value: N/A

Example: <Value is encrypted>

Access token expiration

String

Auto-generated after authorization.

The time until which the access token is active.

Default value: N/A

Example: 1648822115

OAuth2 Endpoint*

String

Specify the tenant ID in the designated position in the URL to authorize the application.

https://login.microsoftonline.com/<tenant-id>/oauth2/v2.0/authorize

Default value: https://login.microsoftonline.com/<tenant-id>/oauth2/v2.0/authorize

Example: https://login.microsoftonline.com/3164f/oauth2/v2.0/authorize

OAuth2 Token*

String

Specify the tenant ID in the following format to get the access token.

https://login.microsoftonline.com/<tenant-id>/oauth2/v2.0/token

Default value: https://login.microsoftonline.com/<tenant-id>/oauth2/v2.0/token

Example: https://login.microsoftonline.com/3164f/oauth2/v2.0/token

Grant type

Dropdown list

Select one of the following Grant types for authorization:
  • authorization_code: Authentication using credentials (username and password), which return to the client through a redirect URL. The application then receives the authorization code from the URL and uses it to request an access token.
  • client_credentials: Obtains an access token for the client ID and client secret through the token endpoint URL.

Default value: authorization_code

Example: client_credentials

Token endpoint config Use this field set to configure custom properties for the OAuth2 token endpoint.
Token endpoint parameter

String

Define custom properties for the OAuth2 token endpoint.

Default value: N/A

Token endpoint parameter value

String

Define custom properties for the OAuth2 auth endpoint.

Default value: N/A

Auth endpoint config Use this field set to configure custom properties for the OAuth2 endpoint.
Authentication endpoint parameter

String

Define optional authentication parameters.

Default value: Scope

Example: Scope

Authentication parameter value

String

Define optional authentication parameter values.
  • To use Microsoft Graph API, you must set the scope as https://graph.microsoft.com/.default.
  • To get a refresh token, you must set the scope as offline_access.
  • You can provide multiple scopes by separating them with spaces.

Default value: https://graph.microsoft.com/.default offline_access

Example: https://graph.microsoft.com/.default offline_access

Auto-refresh token

Checkbox

Select this checkbox to refresh the token automatically. Otherwise, the token might expire and will not be automatically refreshed.

Default value: Deselected

Note: Click Validate after entering the required details to ensure that all fields have been filled accurately. Click Apply to save the settings.