docker-zulip icon indicating copy to clipboard operation
docker-zulip copied to clipboard

SAML Assertion Consumer Service URL has http instead of https

Open intelligentops opened this issue 3 years ago • 3 comments

Hey,

I have a clean Zulip setup with enabled SAMLAuthBackend behind a reverse proxy. I've configured SOCIAL_AUTH_SAML_ENABLED_IDPS section in settings.py and added x509cert from IdP. After that I can see server’s metadata at https://zulip.example.com/saml/metadata.xml but next Location has http scheme

<md:AssertionConsumerService Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST" Location="http://zulip.example.com/complete/saml/" index="1"/>

that cause my browser to show warning during the SAML assertion exchange.

Could you please help find the place where I can change the scheme? Thanks!

intelligentops avatar Jun 16 '21 11:06 intelligentops

Are you using Nginx? When so, you need to add a line line:

proxy_set_header X-Forwarded-Proto $scheme;

eriktews avatar Jul 30 '21 10:07 eriktews

I also added this to the docs here:

https://github.com/zulip/zulip/pull/19442

eriktews avatar Jul 30 '21 10:07 eriktews

That does sound correct, thanks for the fix!

timabbott avatar Jul 30 '21 16:07 timabbott