A simple SSO for NGINX, written in Lua
Find a file
2013-10-16 20:47:37 +02:00
portal Update README.md 2013-10-16 20:47:37 +02:00
access.lua Rename auth_key to srvkey 2013-10-16 20:37:12 +02:00
conf.json Put additional headers in conf 2013-10-16 18:16:41 +02:00
init.lua Update README.md 2013-10-16 20:47:37 +02:00
README.md Update README.md 2013-10-16 20:47:37 +02:00

SSOwat

A simple LDAP SSO for nginx, written in Lua

Requirements

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

OR

Installation

git clone https://github.com/Kloadut/SSOwat /etc/ssowat
nano /etc/ssowat/conf.json

Nginx conf

nano /etc/nginx/conf.d/ssowat.conf

init_by_lua_file   /etc/ssowat/init.lua;
access_by_lua_file /etc/ssowat/access.lua;

server {
    listen 80; # Do not forget HTTPS for production

    location /sso {
       alias /etc/ssowat/portal;
       default_type text/html;
       index index.html;
    }
}

That's it !