Microsoft Entra ID OAuth2 Account
The Microsoft Entra ID OAuth2 Account holds the client credentials and endpoints that an Outbound OAuth2 rule uses to get an access token from Microsoft Entra ID. To create the account in the Policy builder, refer to Create an account in the Policy builder.
To use the authorization_code grant type, add a redirect URI to your
application's settings at Microsoft Entra ID before you click Authorize. This
form has no field for it. After you sign in, Microsoft Entra ID returns you to this URI:
https://<control-plane-name>.snaplogic.com/api/1/rest/admin/oauth2callback/azureactivedirectory,
where <control-plane-name> is the first part of your SnapLogic URL, such as
elastic or emea. For example,
https://elastic.snaplogic.com/api/1/rest/admin/oauth2callback/azureactivedirectory.
| Field/Field set | Description |
|---|---|
| Label | Required. Specify a unique label for the account. |
| Tenant domain name | Required. Specify the domain name of your Microsoft Entra tenant. The
field comes filled in with a sample value. Replace it with your own tenant domain name. Example: |
| Client ID | Required. Specify the application (client) ID of the app that you registered in Microsoft Entra ID. The field comes filled in with a sample value. Replace it with your app's ID. |
| Client secret | Specify the client secret of the app that you registered in Microsoft Entra ID. |
| Access token | This field is read-only and fills in when you click Authorize. It holds the token that the rule sends to the upstream service. |
| Refresh token | This field is read-only and fills in when you click Authorize. The account uses this token to get a new access token before the current one expires. |
| Access token expiration | This field is read-only and fills in when you click Authorize. It holds the time when the access token expires, as a Unix timestamp in seconds. |
| OAuth2 authorization endpoint | Required. Specify the URL of the Microsoft Entra ID endpoint that
authorizes the application. Replace <tenant-id*> with your Microsoft Entra
tenant ID or tenant domain name.Default value:
|
| OAuth2 token endpoint | Required. Specify the URL of the Microsoft Entra ID endpoint that
issues tokens. Replace <tenant-id*> with your Microsoft Entra tenant ID
or tenant domain name.Default value:
|
| Grant type | Select how the account gets an access token:
Default value: authorization_code |
| Token endpoint config | Parameters to send to the token endpoint. Click the plus sign to add a Token
endpoint parameter and its Token endpoint parameter value. Click
the minus sign to remove a row. If Grant type is
client_credentials, add a row with |
| Authorization endpoint config | Optional parameters to send to the authorization endpoint. Click the plus sign to add an
Authentication parameter and its Authentication parameter
value. Click the minus sign to remove a row. Default value: One
row, with |
| Auto-refresh token | Select to refresh the access token automatically before it expires. The account needs a
refresh token to do this. Default status: Deselected |
| Description | Optionally, describe the account. |