try and wildcard scope

This commit is contained in:
Evan Jarrett
2025-10-21 14:03:20 -05:00
parent 2708af614a
commit 0404ea025b

View File

@@ -134,13 +134,7 @@ func GetDefaultScopes(did string, testMode bool) []string {
"blob:application/vnd.cncf.oras.artifact.manifest.v1+json",
}
scopes = append(scopes, "transition:generic")
// In test mode: use transition:generic (local dev with test PDS)
// In production: use rpc scope for service auth
if !testMode {
scopes = append(scopes, fmt.Sprintf("rpc:com.atproto.repo.getRecord?aud=%s#atcr_hold", did))
}
scopes = append(scopes, fmt.Sprintf("rpc:com.atproto.repo.getRecord?aud=%s", "*"))
// Add repo scopes
scopes = append(scopes,