chadtmiller.com/pds.js
An atproto PDS in JavaScript, for Cloudflare Workers and Node
0
0
// The scope a reviewer's sign-in requests, and the scope the client
// registration publishes. One string, imported by both the page and the
// deploy, because an authorization server refuses a client that requests a
// scope its registration does not name.
//
// atproto scope: the account itself, then the collections a participant
// writes. The repository record is here because creating, merging and
// deleting all write it; the config record is here because the settings and
// the delete write it. Each names the actions it takes, so the grant states
// what the page does rather than leaning on the full access `atproto` grants.
export const SCOPE =
'atproto repo:dev.pdsjs.git.review repo:dev.pdsjs.git.pull repo:dev.pdsjs.git.issue repo:dev.pdsjs.git.repo?action=create&action=update&action=delete repo:dev.pdsjs.git.config?action=create&action=update&action=delete';