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

+2 -2
View File
@@ -174,7 +174,7 @@ func TestOAuthFlowResolvePARExchangeSaveRefresh(t *testing.T) {
client := &OAuthClient{
HTTP: pds.Client(),
Metadata: resolved.AuthServer,
ClientID: "https://deploy.site.latha.org/oauth/atproto-client-metadata.json",
ClientID: DefaultClientID,
Key: key,
}
@@ -198,7 +198,7 @@ func TestOAuthFlowResolvePARExchangeSaveRefresh(t *testing.T) {
authURL := BuildAuthorizeURL(resolved.AuthServer, client.ClientID, par.RequestURI)
if !strings.HasPrefix(authURL, pds.URL+"/oauth/authorize?") ||
!strings.Contains(authURL, "request_uri=urn%3Aietf%3Aparams%3Aoauth%3Arequest_uri%3Areq-1") ||
!strings.Contains(authURL, "client_id=https%3A%2F%2Fdeploy.site.latha.org") {
!strings.Contains(authURL, "client_id=https%3A%2F%2Fgit.site.latha.org") {
t.Fatalf("authorize URL = %s", authURL)
}