The OAuth Login and Approve has the wrong URL when using IIS as a proxy
プラットフォームについて: Server および Data Center のみ。この記事は、Server および Data Center プラットフォームのアトラシアン製品にのみ適用されます。
Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Fisheye および Crucible は除く
このページの内容はサポート対象外のプラットフォームに関連しています。したがって、アトラシアン サポートではこのページの記載内容のサポートの提供は保証されません。この資料は情報提供のみを目的として提供されています。内容はお客様自身の責任でご利用ください。
症状
The OAuth dance (Login and Approve) can redirect to the wrong URL. Some examples this has been reported:
- In Jira's Development panel, when authenticating with Development Tools
- When inserting Jira issue macros into Confluence
- When working with third party tools that utilize OAuth and Application links
診断
Check the URLs that are producing errors. Key factors that can help you determine if you're running into this problem or not:
Does the context path match the destination URL?
For example, if you're linking a Confluence site at <mysite.com/wiki> to a Jira site at someothersite.com/jira, does Jira show /wiki
in the URL (and produce a page not found)?
Does the Application Link ID in the URL match the destination application?
Check the application link ID in the URL of the malfunctioning URL - it should be different to the ID from the destination; which can be checked by browsing to <yoursite.com/rest/applinks/2.0/manifest.json>
as an administrator.
Are you using IIS as your reverse proxy with Application Request Routing (ARR)?
This document only applies to IIS when ARR is in use.
原因
This is caused by the "Reverse rewrite host in response headers" option being enabled in IIS.
This setting can be enabled at the site level, where it will affect only that site - but it can also be enabled at the machine level. Make sure to check both the site level configuration and the machine level configuration in IIS Manager.
ソリューション
Disable the setting "Reverse rewrite host in response headers"