Skip to content

This repository contains a small express and nginx setup to test the http_auth_request_module.

Notifications You must be signed in to change notification settings

reytech-dev/nginx-auth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NGINX http_auth_request_module

Description

This repository contains a small express and nginx setup to test the http_auth_request_module. Basically the nginx is sending a subrequest for the location "/private/". If the subrequest is not responding with a 200 statuscode, the request is not authenticated and results in a 401 Unauthorized response. NGINX is returning the statuscode auf the subrequest. Currently the express application returns a 401 statuscode.

Documentation: Authentication Based on Subrequest Result

Requirements

  1. docker
  2. docker-compose

Setup

  1. Add new hosts entry
echo "127.0.0.1 auth-poc.local" | sudo tee -a /etc/hosts
  1. Run following command in project root
$ docker-compose up
  1. Open http://auth-poc.local/public/ in your browser

About

This repository contains a small express and nginx setup to test the http_auth_request_module.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published