https://github.com/pyaillet/traefik-front-auth
Traefik auth proxies examples with keycloak
https://github.com/pyaillet/traefik-front-auth
authentication docker example keycloak traefik
Last synced: 10 months ago
JSON representation
Traefik auth proxies examples with keycloak
- Host: GitHub
- URL: https://github.com/pyaillet/traefik-front-auth
- Owner: pyaillet
- License: mit
- Created: 2023-05-04T19:48:09.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-05-04T20:24:04.000Z (almost 3 years ago)
- Last Synced: 2025-02-04T19:14:29.295Z (about 1 year ago)
- Topics: authentication, docker, example, keycloak, traefik
- Homepage:
- Size: 5.86 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Traefik front auth proxy examples
This repository provides two examples of traefik used as a an authentification proxy delegating auth to a bundled keycloak.
## Usage
1. Check `.env.sample` file from each directory and use them to create your own `.env` file.
2. Deploy the stack with `docker compose up -d` (you might need to do it a few time as there is no proper waiting for keycloak to be available as the image does not come with `curl` or `wget` with installed)
3. Connect to keycloak
4. Create a client and note the `client-id` and `client-secret`
## Resources
- https://github.com/BlackBeltTechnology/traefik-keycloak-sso-reverse-proxy
- https://brianturchyn.net/traefik-forwardauth-support-with-keycloak/
- https://github.com/mesosphere/traefik-forward-auth
- https://github.com/oauth2-proxy/oauth2-proxy
- https://alex.thom.ae/2019/10/20/protect-website-oauth2_proxy-traefik/