Using SAML authentication within nginx
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?
Solution 1:
Someone or the shib project has a free SSO dynamic module for nginx.
https://github.com/nginx-shib/nginx-http-shibboleth
Solution 2:
You can try auth-request module as mentioned : SSO with Nginx