An open API service indexing awesome lists of open source software.

https://github.com/hhromic/traefik-fwdauth

Simple Forward Auth service for Traefik (and possibly other compatible proxies), written in Go.
https://github.com/hhromic/traefik-fwdauth

auth docker docker-compose docker-image docker-swarm golang introspection middleware oidc traefik

Last synced: 2 months ago
JSON representation

Simple Forward Auth service for Traefik (and possibly other compatible proxies), written in Go.

Awesome Lists containing this project

README

          

# Traefik Forward Auth Service

Simple [Forward Auth](https://doc.traefik.io/traefik/middlewares/http/forwardauth/) service for
[Traefik](https://github.com/traefik/traefik/) (and possibly other compatible proxies), written in
[Go](https://go.dev/).

This Forward Auth service implements the following features:

* [OAuth2 Token Introspection](https://datatracker.ietf.org/doc/html/rfc7662) validation.
* Introspection endpoint discovery via [OpenID Connect Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html).

## Usage

Usage examples can be found in the [`examples/`](examples/) directory.

## Building

To build a release Docker image, use [Docker Build Bake](https://docs.docker.com/build/bake/):
```
git checkout vX.Y.Z
TAG=vX.Y.Z docker buildx bake
```

> [!NOTE]
> Ready-to-use images are available in the
> [GitHub Container Registry](https://github.com/users/hhromic/packages/container/package/traefik-fwdauth).

To build a snapshot locally Using [GoReleaser](https://goreleaser.com/):
```
goreleaser build --clean --single-target --snapshot
```

## License

This project is licensed under the [Apache License Version 2.0](LICENSE).