nginxinc / nginx-ldap-auth

Example of LDAP authentication using ngx_http_auth_request_module
BSD 2-Clause "Simplified" License
678 stars 202 forks source link

Manage auth result (Session based or Token Based authentication) #86

Open FedorSabeshkin opened 3 years ago

FedorSabeshkin commented 3 years ago

Description:

  1. I would like to allow LDAP authentication in my app which hosted on nginx
  2. I setup nginx-ldap-auth, like this instructions
  3. nginx send auth request to LDAP service on each call content from /private resource
  4. I want to save authenticate result for client, for 6 hours, for example.

Supposed solution
Save result of LDAP authentication in Token or Session(Session based or Token Based authentication), but i don't understand where should to realize that. Now i think, i should change nginx-ldap-auth/nginx-ldap-auth-daemon.py for return token after success LDAP authentication.

FedorSabeshkin commented 3 years ago

I saw source code. Do i right understand that example suppose something like Cookie-based Authentication?