Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rucciva/giteaty
Expose gitea users' authentication data.
https://github.com/rucciva/giteaty
caddy caddy-plugin gitea identity ldap
Last synced: about 1 month 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 4 years ago)
- Default Branch: master
- Last Pushed: 2024-01-28T05:58:18.000Z (11 months ago)
- Last Synced: 2024-01-28T06:40:57.823Z (11 months ago)
- Topics: caddy, caddy-plugin, gitea, identity, ldap
- Language: Go
- Homepage:
- Size: 143 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 13
-
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 mainimport (
"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 ../../
```