https://github.com/loafoe/caddy-token
Caddy plugin for static and ID token authentication
https://github.com/loafoe/caddy-token
api-token-generator caddy caddy-plugin static-token-auth
Last synced: 4 months ago
JSON representation
Caddy plugin for static and ID token authentication
- Host: GitHub
- URL: https://github.com/loafoe/caddy-token
- Owner: loafoe
- License: apache-2.0
- Created: 2024-07-13T18:30:51.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2025-04-21T05:06:58.000Z (about 1 year ago)
- Last Synced: 2025-04-23T22:40:47.445Z (about 1 year ago)
- Topics: api-token-generator, caddy, caddy-plugin, static-token-auth
- Language: Go
- Homepage:
- Size: 357 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# caddy-token
Caddy token based authentication. Supports static, signed and and JWT tokens
## Example config
```caddyfile
{
order token first
}
:3000 {
token {
jwt {
issuer https://dex.issuer.lan
group admin
}
}
reverse_proxy https://some.service.internal {
header_up Host {http.reverse_proxy.upstream.hostport}
}
}
```
## Development
Read [Extending Caddy](https://caddyserver.com/docs/extending-caddy) to get an overview
of what interfaces you need to implement.
# building
You first need to build a new caddy executable with this plugin. The easiest way is to do this with xcaddy.
Install xcaddy:
```shell
go install github.com/caddyserver/xcaddy/cmd/xcaddy@latest
```
After xcaddy installation you can build caddy with this plugin by executing:
```shell
xcaddy build v2.8.4 --with github.com/loafoe/caddy-token
```
# usage
TODO
# license
License is Apache 2.0