mirror of
https://tangled.org/evan.jarrett.net/at-container-registry
synced 2026-06-08 16:22:36 +00:00
try and wildcard scope
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user