Nginx – Using SAML authentication within nginx

nginxsingle-sign-on

I want to restrict access to some static content, served using nginx, using an existing SAML 2.0 IdP. (In Apache, this would be done with a module such as mod_mellon or mod_auth_saml)

What is the best way to use SAML authentication for static content on nginx? If it is still the use of X-Accel headers, is there a helper script out there to proxy from a SAML authentication or do I need to start from scratch for this?

Best Answer

Someone or the shib project has a free SSO dynamic module for nginx.

https://github.com/nginx-shib/nginx-http-shibboleth