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.
This commit is contained in:
nandi committed 2026-11-18 06:59:09 +00:00
1 parent 5772bedb88
commit 9ebb35860c
3 files changed
+8 -6

No files matched your search

+1 -1
View File
@@ -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%2Fgit.site.latha.org") {
!strings.Contains(authURL, "client_id=https%3A%2F%2Fdeploy.site.latha.org") {
t.Fatalf("authorize URL = %s", authURL)
}