Welcome to the Alteryx Knowledge Base
Created/Edited -
Customers may encounter an error when creating a Snowflake connection in Alteryx One using OAuth 2.0 authentication, even after following the documented configuration steps and allowlisting the required Alteryx IP addresses.
The connection fails during the authentication process and prevents users from creating or using Snowflake connections within Alteryx One.
A customer attempting to connect Snowflake to Alteryx Designer Cloud using OAuth 2.0 authentication receives an authentication error when creating the connection.
Example error:
Error:An error happened while getting auth code.
Request ID: 4d0f66250676be8ba3e5947c967eda07
Session ID: 01dc840c-ad4e-4220-9b9c-3de6f942292c
Tier: platform_packaging
Observed behavior:
- Snowflake OAuth connection creation fails in Alteryx One.
- The OAuth flow redirects successfully.
- Authentication fails before the connection is established.
EU1 AAC
- Appropriate Snowflake permissions to configure and manage OAuth integrations.
- Access to review and update Snowflake network policies.
- Snowflake OAuth 2.0 Client Application configured according to Alteryx documentation.
- Required Snowflake roles granted to the user performing the configuration.
- Access to create and manage connections in Alteryx One.
- Alteryx platform IP addresses identified and available for allowlisting.
Investigation showed that the OAuth authorization flow successfully redirected back to Alteryx Cloud and returned an authorization code.
However, the token exchange process failed with:
Error:invalid_client
Message:This is an invalid client.
The issue occurred because the Alteryx platform IP addresses were not allowlisted within the customer's Snowflake network policies.
The customer had network policies configured at both:
- Snowflake Account level
- Snowflake Security Integration level
Because the Alteryx IP addresses were not allowlisted in the applicable policies, the authorization code could not be successfully exchanged for tokens.
The OAuth flow was failing during the authorization code exchange process.
To resolve the issue:
- Verify the Snowflake OAuth integration configuration.
- Review all Snowflake network policies associated with:
- The Snowflake account
- The Snowflake OAuth security integration
- Confirm that the required Alteryx platform IP addresses are allowlisted in all applicable network policies.
- Save the policy changes.
- Recreate or retest the Snowflake OAuth connection from Alteryx One.
- Verify that the OAuth authorization code is successfully exchanged for access tokens.
Result: After allowlisting the Alteryx IP addresses in the customer's Snowflake network policies, the OAuth flow completed successfully and the Snowflake connection was created.
- Snowflake OAuth 2.0 Client App configuration:
https://help.alteryx.com/aac/en/platform/connections/configure-connectivity/enable-oauth-2-0-authentication/oauth-2-0-for-snowflake.html#create-oauth-2-0-client-app-in-snowflake - Alteryx platform IP allowlisting:
https://help.alteryx.com/aac/en/platform/connections/configure-connectivity/whitelist-platform-service.html