Handling permissions
In Solid, permissions are handled through a standard called Web Access Control (or WAC).
Adding or removing WAC permissions
To add or remove permissions from a Pod, the app can use the PodPermissionsService
.
To give a permission to all users, you should use acl:agentClass
for the agentPredicate
and http://xmlns.com/foaf/0.1/Agent
for the agentUri
.
Creating WAC groups
The PodWacGroupsService
allows you to create or delete WAC groups, as well as add or remove members from these groups.
You can then give permissions to the whole group using pod-permissions.add
,with acl:agentGroup
for the agentPredicate
and the URI of the group for the agentUri
.