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.
This commit is contained in:
nandi committed 2026-11-18 06:53:47 +00:00
1 parent fb79db4e21
commit 5772bedb88
4 files changed
+27 -8

No files matched your search

+7 -5
View File
@@ -12,11 +12,13 @@ import (
)
const (
// DefaultClientID is where the latha-auth client metadata JSON is
// expected to be hosted. Host the output of
// `latha-auth atproto --print-client-metadata` at this URL (or pass
// --client-id / LATHA_ATPROTO_CLIENT_ID).
DefaultClientID = "https://deploy.site.latha.org/oauth/atproto-client-metadata.json"
// DefaultClientID serves the client metadata JSON from this repo
// (oauth/atproto-client-metadata.json) via Gitea raw, so it is
// versioned with the client. Regenerate with
// `latha-auth atproto --print-client-metadata` after changing
// scope or redirect URIs, or pass --client-id /
// LATHA_ATPROTO_CLIENT_ID to use a different hosted copy.
DefaultClientID = "https://git.site.latha.org/experiments/latha-auth/raw/branch/main/oauth/atproto-client-metadata.json"
// DefaultScope covers full repo writes and blob uploads (the old
// app-password capability level), which publishing tiles needs.
DefaultScope = "atproto transition:generic"