AR
arthurlm/simple-oidc-contour-authserver
OIDC validation server for Project Contour
OIDC auth server for project contour
A really simple auth server to use with Project Contour.
Project support various authorisation method
- OIDC: project was made for this at first ๐
- htpasswd
- IP allow / deny list
Few more details
This project is made to add JSON Web Token (JWT) validation in K8S.
It provide:
- only the bare minimum features !
Is is focus on:
- speed
- stability
It does not provide:
- full OIDC implem
See more details on auth server at: https://projectcontour.io/guides/external-authorization/
K8S example
See wiki for details example.
HTTP headers informations
App will add following headers on success (each may be empty):
Auth-Jwt-Sub: JWT specific: user subjectAuth-Jwt-Aud: JWT specific: user audienceAuth-Jwt-Iss: JWT specific: user issuerAuth-Email: User emailAuth-Name: User nameAuth-Unique-Name: User unique nameAuth-Roles: User roles
Otherwise it will return 401 error status code and do not forward requests to protected backend.
Contribute guidelines
Feel free to create PR.
Any help, improvment ideas are welcome ๐ !
To run:
source .envrc
cargo r bearer
To test:
cargo t
On this page
Languages
Rust98.7%Dockerfile1.0%Shell0.2%
Contributors
MIT License
Created March 17, 2021
Updated March 20, 2026