https://github.com/morganridel/proxy-authn-docker-demo
https://github.com/morganridel/proxy-authn-docker-demo
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/morganridel/proxy-authn-docker-demo
- Owner: morganridel
- Created: 2021-12-20T11:52:59.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2022-01-05T18:20:18.000Z (over 3 years ago)
- Last Synced: 2025-01-02T16:44:54.180Z (3 months ago)
- Size: 719 KB
- Stars: 14
- Watchers: 1
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- jimsghstars - morganridel/proxy-authn-docker-demo - (Others)
README
# Authentication methods with a reverse proxy
This repository contains code examples of different means of authentication when multiples apps are behind a reverse-proxy.
It is meant to illustrate my [blog post on authentication behind a proxy](http://morganridel.fr/authentication-for-multiple-apps-behind-a-reverse-proxy) and assumes no control over the source code of the upstream apps.

## Running the examples
Make sure that all the subdomains (`*.localhost`) redirects to the nginx server ip!
Every `*.localhost` URL shoud send you to 127.0.0.1 by default but you may need to modify your /etc/hosts file to make this work.Cache issues may arise between examples. If you enconter problem, clean your cache or try in a private browsing window.
* **App-based authentication**
* [No authentication](./app-no-auth)
* [Internal authentication](./app-internal-auth)
* [OpenID Connect authentication](./app-oauth-auth)
* **Proxy-based authentication**
* [Basic authentication](./proxy-basic-auth)
* [HTTP header authentication](./proxy-header-auth)
* [Auth request authentication](./proxy-auth-request)