This example shows an example of using Ory Oathkeeper with Traefik.
Request flow:
- Request lands on Traefik
- Traefik uses forwardauth to forward authentication to http://oathkeeper/decision API
cookie_sesion
authentication checks authentication and returns request back to Traefik- Hydrator adds an additional header to the request
- Traefik proxies request to
hello
service
For more information, please refer to the Ory Oathkeeper documentation.
Ory Oathkeeper Access Rules: access-rules.yml
Ory Oathkeeper Configuration: oathkeeper.yml
git clone [email protected]:ory/examples
cd examples/oathkeeper/07-traefik-decision
docker-compose up --build
- Wait for a couple of seconds and open
http://127.0.0.1:8080/hello
. - Sign up for a new account.
- Open
http://127.0.0.1:8080/hello
again.
Feel free to open a discussion to provide feedback or talk about ideas, or open an issue if you want to add your example to the repository or encounter a bug. You can contribute to Ory in many ways, see the Ory Contributing Guidelines for more information.