Skip to content

s-mokrushin/openresty-auth-middleware

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OpenResty Auth Middleware

Example of basic digest authentication as middleware in nginx (OpenResty).

Diagram

What is included

  • OpenResty - enhanced version of nginx with LuaJIT support.
  • Memcached - in-memory storage.
  • PHP - interpreter for php scripts.

Run the demo

Use Docker for quick start.

docker-compose up --build
  1. Open browser http://127.0.0.1:8090/. Enter username test and password test. Done!
  2. Open browser http://127.0.0.1:8091/. This page will be opened without authorization.

About

Example of basic digest authentication as middleware in nginx (OpenResty)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published