feat: initial latha-auth CLI for Gitea PKCE relay and Zitadel Device Code
This commit is contained in:
commit
82d6862a0e
9 files changed
+682
No files matched your search
@@ -0,0 +1,15 @@
|
||||
# latha-auth
|
||||
|
||||
Zero-localhost OAuth CLI for remote VMs authenticating against Gitea (`git.site.latha.org`) and Zitadel (`auth.site.latha.org`).
|
||||
|
||||
## Commands
|
||||
|
||||
- `latha-auth gitea`: Authenticates with Gitea via PKCE + the `https://deploy.site.latha.org/oauth/callback` relay, configures `tea login` (`latha`), and sets up git credentials.
|
||||
- `latha-auth k3s`: Runs Zitadel OAuth 2.0 Device Code flow for K3s Headlamp (`dash.latha.org`, `client_id=400047321930268787`) and saves the token to `~/.config/latha-auth/k3s-token.json` (`0600`).
|
||||
- `latha-auth oidc --client-id <id> [--scope "..."] [--out <path>]`: Generic Zitadel Device Code flow for any `auth.site.latha.org` service.
|
||||
|
||||
## Install
|
||||
|
||||
```bash
|
||||
go build -o ~/.local/bin/latha-auth ./cmd/latha-auth
|
||||
```
|
||||
Reference in new issue
Block a user