After updating sonarqube, our saml login stopped working, We did it by following your steps, now it works.
The code below has been very useful for us.
%windir%\system32\inetsrv\appcmd.exe set config -section:system.webServer/proxy -preserveHostHeader:true /commit:apphost