SSO ADFS redirection issue with reverse proxy with ARR

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-25 16:42:57

问题


I have a reverser proxy setup with ARR and URL Rewite on IIS 8.5

public site exposed is http:/publicsite

http:/publicsite act as a reverse proxy to the internal site http:/internalsite

Every thing was working fine till we implement SSO for the internal site. Once sso is implemeted internal site is redirecting to http:/ssosite to get authenticated

Since in ARR we have enabled the option "Reverse rewrite host in response headers" the redirection to sso site was not proper. To make it work "Reverse rewrite host in response headers" is disabled. and the sso redirection started working.

But now the issue happening is after succesful login the ADFS tries to redirect to http:/publicsite. and reverse proxy respond with a 302 and the location in the response is http:/internalsite and the client machine doesnt have access to.

In the same browser if i try to access the site http:/publicsite again everything is working as expected because it is already authenticated and no redirection required to sso site and back to application.

My understanding is the response header is not getting re written since we have disabled the "Reverse rewrite host in response headers" option.


回答1:


Set preserveHostHeader="true" in applicationhost.config in the reverse proxy server. This solved the issue.

https://forums.iis.net/t/1176668.aspx



来源:https://stackoverflow.com/questions/43433352/sso-adfs-redirection-issue-with-reverse-proxy-with-arr

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!