feat: Update templates and generators to support ACP

This commit is contained in:
Joachim Van Herwegen
2022-08-19 11:12:02 +02:00
parent 728617ac77
commit 40f2c8ea42
41 changed files with 800 additions and 271 deletions

View File

@@ -0,0 +1,32 @@
# WARNING: DO NOT USE UNMODIFIED UNLESS FOR TESTING PURPOSES.
# WHEN IN DOUBT, DELETE THIS DOCUMENT.
#
# This root ACR allows unrestricted public access to all documents and subcontainers.
#
# This document was automatically generated by the Community Solid Server
# because the "Expose a public root Pod" option was selected during setup,
# or because setup has been bypassed.
#
# We strongly suggest to edit this document such that it restricts permissions.
@prefix acl: <http://www.w3.org/ns/auth/acl#>.
@prefix acp: <http://www.w3.org/ns/solid/acp#>.
# Give all agents Read, Write, and Control permissions on everything
<#card>
a acp:AccessControlResource;
acp:resource <./>;
acp:accessControl <#publicReadAccess>;
acp:memberAccessControl <#publicReadAccess> .
<#publicReadAccess>
a acp:AccessControl;
acp:apply [
a acp:Policy;
acp:allow acl:Read, acl:Write, acl:Control;
acp:anyOf [
a acp:Matcher;
acp:agent acp:PublicAgent
]
].