KNOWLEDGE BASE

Error "Attempt to redirect to unrecognized host <host name>. Unable to redirect" When Adding OAuth Credentials


Published: 01 Mar 2022
Last Modified Date: 02 Mar 2022

Issue

When adding OAuth credentials in Tableau Server, the following error may occur:

Attempt to redirect to unrecognized host <host name>. Unable to redirect. If this host is a trusted host, add this host to the 'oauth.whitelisted.redirect_to_origin_host' list.

Environment

  • Tableau Server 2021.4
  • OAuth connection (e.g. Snowflake, Azure Data Lake Storage Gen2, Azure Synapse, Azure SQL Database, Databricks, Dremio, Google Analytics, Google BigQuery, Google Sheets, Intuit QuickBooks Online, Salesforce, Salesforce CPD)

Resolution

If the host indicated in the error message is a trusted host, run tsm configuration set with the oauth.whitelisted.redirect_to_origin_host key option. For example, the following commands set the host name to tableau:
tsm configuration set -k oauth.whitelisted.redirect_to_origin_host -v "tableau"
tsm pending-changes apply              

Cause

The host name indicated in the error message needs to be added to the allowlist redirect key on Tableau Server.
Did this article resolve the issue?