nginx-sso is intended to be used within the ngx_http_auth_request_module of Nginx to provide a single-sign-on for a domain using one central authentication directory.
ngx_http_auth_request_module