Commit Graph
6 Commits
Author SHA1 Message Date
nandi 8bc017ca72 feat!: remove gitea command in favor of gt
Gitea login is handled by gt directly. The OAuth relay polling that atproto
shares moves to internal/relay.
2026-11-21 16:31:42 -08:00
nandi a1cfcc1de7 feat: switch gitea login from tea to gt 2026-11-18 15:17:31 -08:00
nandi 9ebb35860c fix: default atproto client_id to deployer-hosted metadata
Authorization servers reject the Gitea-raw copy's text/plain
Content-Type when fetching client metadata at PAR time (verified
against a live PDS). The deployer serves the same document as
application/json.
2026-11-18 06:59:09 +00:00
nandi 5772bedb88 feat: host atproto client metadata from this repo via Gitea raw
Default client_id now points at oauth/atproto-client-metadata.json in
this repository, served at
https://git.site.latha.org/experiments/latha-auth/raw/branch/main/oauth/atproto-client-metadata.json
so no separate deploy is needed before first login.
2026-11-18 06:53:47 +00:00
nandi fb79db4e21 feat: add atproto OAuth login and token commands
New internal/atproto package implements the atproto OAuth profile as a
public client: handle/DID resolution with bidirectional verification,
PDS and authorization-server metadata discovery, PAR + PKCE, ES256
DPoP proofs with server-nonce retry, and token exchange/refresh with
sub verification. Sessions (tokens + DPoP key) are saved 0600.
'latha-auth atproto' collects the code via the existing deploy relay;
'latha-auth atproto-token' prints a refreshed access token.
2026-11-18 06:19:36 +00:00
nandi 82d6862a0e feat: initial latha-auth CLI for Gitea PKCE relay and Zitadel Device Code 2026-11-17 21:38:18 +00:00