---
schema_version: "1"
id: d5559e12c865a53736a9bd8e77bfa632a459bd9fdb85f24f43ac5ff232e545cc
title: OAuth 连接疑难解答
collection: tableau
version: current
locale: zh-cn
portal_url: https://docs.salesforce.com/tableau/current/zh-cn/server/oauth_trouble.md
canonical_url: https://help.tableau.com/current/server/zh-cn/oauth_trouble.htm
source_site: help.tableau.com
content_type: documentation
content_hash: ae7906cd8f176055dbe55f45b3016356dcdea8ab65b6425cc85b6143fe3e6744
description: Troubleshoot issues that occur when configuring OAuth data connections.
---
[跳转到主要内容](#main-content)

# OAuth 连接疑难解答

本主题提供相关信息，帮助解决在配置 Oauth 数据连接时可能发生的问题。

## 冲突错误

在某些情况下，用户在尝试使用 OAuth 连接时可能会收到错误。错误消息的第一句是：

服务器遇到内部错误或配置错误，无法完成您的请求。

此错误指示需要将 Tableau Server 的完全限定域名 (FQDN) 添加到 Tableau Server 上的允许列表重定向键中。

当用户按本地主机名 (https://tableau) 访问 Tableau Server ，并且 OAuth 数据提供程序响应公共 DNS 名称 (https://data.example.com) 时，Tableau Server 必须将外部 FQDN 与本地服务器名称关联。本地主机名是用户从内部网络访问 Tableau Server 时输入的 URL 中的服务器名称。

若要修复此错误，请使用 `oauth.whitelisted.redirect_to_origin_host` 键选项运行 [tsm configuration set](https://help.tableau.com/current/server/zh-cn/cli_configuration_tsm.htm#TSMSet)。 此键采用值对 `"internal_host,FQDN1,FQDN2"`。例如，以下命令将本地主机名设置为 _tableau_，将 FQDN 设置为 _tableau.example.com_：

`tsm configuration set -k oauth.whitelisted.redirect_to_origin_host -v "tableau,tableau.example.com"`

`tsm pending-changes apply`

在使用多个公共 URL 访问内部 Tableau Server 的情况下，向命令中添加其他 FQDN，用逗号分隔，例如：

`tsm configuration set -k oauth.whitelisted.redirect_to_origin_host -v "tableau,tableau.example.com,tableau2.example.com"`

如果需要编辑现有允许列表重定向配置，则必须输入完整的映射集。不能截断或追加现有配置键。