https://github.com/rucciva/giteaty
Expose gitea users' authentication data.
https://github.com/rucciva/giteaty
caddy caddy-plugin gitea identity ldap
Last synced: 3 months ago
JSON representation
Expose gitea users' authentication data.
- Host: GitHub
- URL: https://github.com/rucciva/giteaty
- Owner: rucciva
- Created: 2020-06-26T09:31:13.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2025-11-23T08:08:37.000Z (4 months ago)
- Last Synced: 2025-11-23T10:06:57.979Z (4 months ago)
- Topics: caddy, caddy-plugin, gitea, identity, ldap
- Language: Go
- Homepage:
- Size: 171 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 29
-
Metadata Files:
- Readme: Readme.MD
Awesome Lists containing this project
README
# Gitea Identity
Expose gitea users' identity through:
- [x] LDAP
- [x] [Caddy V1 Plugin](https://caddyserver.com/v1/)
- [ ] OpenID Connect (with [ORY Hydra](https://github.com/ory/hydra))
## LDAP Server
Look at [docker-compose.yml](build/docker/docker-compose.yml#L78) for refference on how to run the LDAP Server
## Caddy V1 Plugin
To use it with caddy, you need to build caddy yourself and include the plugin, such as:
```go
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](pkg/caddyhandler/setup_test.go#L31-L53).
## Development
### Build and Test
```bash
make generate
make build
make test
```
### Build Docker Image
```bash
cd build/docker
docker-compose \
-f docker-compose.yml \
-f docker-compose.production.yml \
build giteaty
cd ../../
```