scope
This article is a stub. You can help the IndieWeb wiki by expanding it.
In OAuth terminology, scope is a way to limit what parts of your account are accessible by third-party applications.
For example, you can choose to allow one application to read your basic profile info, while another application may be authorized to post on your behalf.
Micropub Scopes
Micropub clients use scopes to indicate what permissions they are requesting from Micropub servers, which will result in the user seeing the listed scopes in the authorization prompt. Clients and servers must agree on the names and expected behavior of a list of scopes in order to provide a consistent user experience among apps.
Listed below are the currently supported Micropub scopes across most clients and servers.
create
- allows the client to create posts on behalf of the userdraft
- (proposed) allows the client to create draft posts only on behalf of the user (requested in lieu of create scope)update
- allows the client to edit existing postsdelete
- allows the client to delete postsmedia
- allows the client to upload files to the media endpoint
These are distinct permissions, so e.g. granting a client only "create" scope means it will not be able to update or delete existing posts.
Most servers allow clients with the create
scope to also allow uploading to the media endpoint. The media
scope can be used to allow clients to only upload to the media endpoint without being able to also create posts.
Use the sections below to document additional experimental scopes that software has implemented, and once there are two or more clients and servers that support the additional scopes, they can be added to the registry above.
Scopes supported by Micropub clients
- Quill requests the "create" and/or "update" scope when authorizing it to create posts on your domain.
- OwnYourGram requests the "create" scope when authorizing it to create photo posts on your domain.
- Micropublish.net requests the scopes "post" or "create update delete undelete", for the user to choose, and has the option to select "draft" scope
- Indigenous requests the "create", "update" and "delete" scopes when logging in to the app.
- indiebookclub requests the "create" scope.
- Indiepaper requests the "create", "update", and "save" scopes when logging in.
- Micro.blog requests the "create" scope.
- Sunlit requests the "create" scope.
- www-editor.jvt.me requests the "create update delete undelete" scopes
Scopes supported by Micropub servers
- Known supports _____
- The Wordpress Micropub plugin uses WordPress capabilities and those capabilities are edited based on scope by the WordPress IndieAuth plugin.
- The create, draft, update, delete, and media scopes are supported. The profile scope is listed but currently is not implemented as a capability.
- Aaron Parecki requires the "create" scope in order for a client to create new posts, "update" for updates, and "delete" for deletes. "media" for file uploads. if the client is issued a token that contains the "draft" scope, that client can only create draft posts.
- Pelle Wessman, using his micropub-to-github endpoint, requires the "create" or "post" scope for a client to give access, treating "create" as the preferred one
- Sebastiaan Andeweg uses scopes "create", "update", "delete", "media" (for photo upload) and "media-plus" (for uploads without limitations on file extension)
- Jamie Tanna uses "create", "update", "delete", "media" (for photo upload), and "undelete" (to undelete posts, or to view deleted posts via `q=source`)
- Jamie is also planning on adding the "notify" scope to allow for sending push notifications
Microsub Scopes
Microsub clients use scopes to indicate what actions they are requesting to be able to take on the user's account.
read
- this is the minimum scope clients should request. this allows clients to have read access to channels.follow
- allows the client to manage the following listmute
- allows the client to mute and unmute usersblock
- allows the client to block and unblock userschannels
- allows the client to manage channels
IndieAuth Scopes
Profile Data
To request profile information of a client, such as the user's name and profile photo over just a URL, particularly for IndieAuth clients/servers which may not support Microformats2 parsing for profile information, there is the https://indieauth.spec.indieweb.org/#profile-information functionality, which uses the profile scope, and additional properties that can be added to mirror OpenID Connect.
profile
- provide basic profile data. Sites can optionally require this for all profile data, or provide some profile data in all returns.email
- request email address
Brainstorming
Other Scopes
undelete
- allows the client to undelete a deleted post, if possiblenotify
- allows the client to send push notifications to the user
Scoped by Post Types
As of 2022-03-28, the Micropub spec suggests suffixing certain scopes with post types to restrict the kind of action that can be made. For example:
create:note
- restricts a token to only create new notesupdate:read
- only updating existing read-of posts
Servers
- Jacky AlcinΓ©'s Koype has tickets tracking this behavior
Scopes used by Silos
GitHub
Github has defined many scopes for granting very granular permissions to applications. By default, applications can only read public profile info unless granted explicit scopes. Write access to any parts of a user account must be explicitly authorized with one or more scopes such as "user", "repo", or "gist". Deleting repos requires a specialized scope as well.
See the full list of Github OAuth scopes.
Google+
Scopes that conform to the OpenID Connect standard have full names that are short: profile, email and openidβthey are not in the form of a URI. On the other hand, Google-specific scopes are in the form of a URI, such as https://www.googleapis.com/auth/plus.login
See also: Authorization scopes