6 Commits
Author SHA1 Message Date
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 653da47753 Use tea login add --helper instead of --git-credentials 2026-11-17 22:51:03 +00:00
nandi 78160b453f fix: include cmd/latha-auth/main.go by anchoring .gitignore 2026-11-17 21:38:31 +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