Expose gitea users' identity through:
- LDAP
- Caddy V1 Plugin
- OpenID Connect (with ORY Hydra)
Look at docker-compose.yml for refference on how to run the LDAP Server
To use it with caddy, you need to build caddy yourself and include the plugin, such as:
package main
import (
"github.com/caddyserver/caddy/caddy/caddymain"
"github.com/caddyserver/caddy/caddyhttp/httpserver"
_ "github.com/rucciva/giteaty/cmd/giteaty-caddy"
// add additional plugins as needed
)
func main() {
httpserver.RegisterDevDirective("giteaty", "authz")
caddymain.Run()
}
Look at the test files to see examples.
make generate
make build
make test
cd build/docker
docker-compose \
-f docker-compose.yml \
-f docker-compose.production.yml \
build giteaty
cd ../../