16 lines
754 B
Markdown
16 lines
754 B
Markdown
# 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
|
|
```
|