A simple SSO for NGINX, written in Lua
Find a file
2013-10-16 18:00:51 +02:00
access.lua Avoid caching problems 2013-10-16 18:00:51 +02:00
conf.json Change main_domain to portal_domain 2013-10-16 15:54:58 +02:00
init.lua Handle multi-domain 2013-10-16 11:27:18 +02:00
login.html Init 2013-10-15 10:11:39 +02:00
README.md Update README.md 2013-10-16 15:57:01 +02:00

SSOwat

A simple LDAP SSO for nginx, written in Lua

Requirements

  • Nginx-extras from Debian wheezy-backports
  • lua-json
  • lua-ldap

OR

Example Nginx conf


init_by_lua_file path/to/init.lua;
access_by_lua_file path/to/access.lua;

# SSO domain
server {
    listen 80;
    server_name  mydomain.com;
    root /var/www/mydomain.com;

    location /ssowat {
       alias /var/www/ssowat;
       default_type text/html;
    }

    location /whatever {

        ...

    }
}

# Other domain
server {
    listen 80;
    server_name myotherdomain.com;
    root /var/www/myotherdomain.com;

    ...

}