-
Notifications
You must be signed in to change notification settings - Fork 303
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
22 changed files
with
330 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Root ACL resource for the user account | ||
@prefix acl: <http://www.w3.org/ns/auth/acl#>. | ||
@prefix foaf: <http://xmlns.com/foaf/0.1/>. | ||
|
||
# The homepage is readable by the public | ||
<#public> | ||
a acl:Authorization; | ||
acl:agentClass foaf:Agent; | ||
acl:accessTo </>; | ||
acl:mode acl:Read. | ||
|
||
# The owner has full access to every resource in their pod. | ||
# Other agents have no access rights, | ||
# unless specifically authorized in other .acl resources. | ||
<#owner> | ||
a acl:Authorization; | ||
acl:agent <https://alice.localhost:8443/profile/card#me>; | ||
# Optional owner email, to be used for account recovery: | ||
acl:agent <mailto:[email protected]>; | ||
# Set the access to the root storage folder itself | ||
acl:accessTo </>; | ||
# All resources will inherit this authorization, by default | ||
acl:default </>; | ||
# The owner has all of the access modes allowed | ||
acl:mode | ||
acl:Read, acl:Write, acl:Control. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Root Meta resource for the user account | ||
# Used to discover the account's WebID URI, given the account URI | ||
<https://alice.localhost:8443/profile/card#me> | ||
<http://www.w3.org/ns/solid/terms#account> | ||
</>. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# ACL resource for the Root Meta | ||
# Should be public-readable (since the root meta is used for WebID discovery) | ||
|
||
@prefix acl: <http://www.w3.org/ns/auth/acl#>. | ||
@prefix foaf: <http://xmlns.com/foaf/0.1/>. | ||
|
||
<#owner> | ||
a acl:Authorization; | ||
|
||
acl:agent | ||
<https://alice.localhost:8443/profile/card#me>; | ||
|
||
acl:accessTo </.meta>; | ||
|
||
acl:mode | ||
acl:Read, acl:Write, acl:Control. | ||
|
||
<#public> | ||
a acl:Authorization; | ||
|
||
acl:agentClass foaf:Agent; # everyone | ||
|
||
acl:accessTo </.meta>; | ||
|
||
acl:mode acl:Read. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# ACL resource for the well-known folder | ||
@prefix acl: <http://www.w3.org/ns/auth/acl#>. | ||
@prefix foaf: <http://xmlns.com/foaf/0.1/>. | ||
|
||
# The owner has all permissions | ||
<#owner> | ||
a acl:Authorization; | ||
acl:agent <https://alice.localhost:8443/profile/card#me>; | ||
acl:accessTo <./>; | ||
acl:defaultForNew <./>; | ||
acl:mode acl:Read, acl:Write, acl:Control. | ||
|
||
# The public has read permissions | ||
<#public> | ||
a acl:Authorization; | ||
acl:agentClass foaf:Agent; | ||
acl:accessTo <./>; | ||
acl:defaultForNew <./>; | ||
acl:mode acl:Read. |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# ACL for the default favicon.ico resource | ||
# Individual users will be able to override it as they wish | ||
# Public-readable | ||
|
||
@prefix acl: <http://www.w3.org/ns/auth/acl#>. | ||
@prefix foaf: <http://xmlns.com/foaf/0.1/>. | ||
|
||
<#owner> | ||
a acl:Authorization; | ||
|
||
acl:agent | ||
<https://alice.localhost:8443/profile/card#me>; | ||
|
||
acl:accessTo </favicon.ico>; | ||
|
||
acl:mode | ||
acl:Read, acl:Write, acl:Control. | ||
|
||
<#public> | ||
a acl:Authorization; | ||
|
||
acl:agentClass foaf:Agent; # everyone | ||
|
||
acl:accessTo </favicon.ico>; | ||
|
||
acl:mode acl:Read. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# ACL resource for the profile Inbox | ||
|
||
@prefix acl: <http://www.w3.org/ns/auth/acl#>. | ||
@prefix foaf: <http://xmlns.com/foaf/0.1/>. | ||
|
||
<#owner> | ||
a acl:Authorization; | ||
|
||
acl:agent | ||
<https://alice.localhost:8443/profile/card#me>; | ||
|
||
acl:accessTo <./>; | ||
acl:default <./>; | ||
|
||
acl:mode | ||
acl:Read, acl:Write, acl:Control. | ||
|
||
# Public-appendable but NOT public-readable | ||
<#public> | ||
a acl:Authorization; | ||
|
||
acl:agentClass foaf:Agent; # everyone | ||
|
||
acl:accessTo <./>; | ||
|
||
acl:mode acl:Append. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# ACL resource for the private folder | ||
@prefix acl: <http://www.w3.org/ns/auth/acl#>. | ||
|
||
# The owner has all permissions | ||
<#owner> | ||
a acl:Authorization; | ||
acl:agent <https://alice.localhost:8443/profile/card#me>; | ||
acl:accessTo <./>; | ||
acl:default <./>; | ||
acl:mode acl:Read, acl:Write, acl:Control. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# ACL resource for the profile folder | ||
@prefix acl: <http://www.w3.org/ns/auth/acl#>. | ||
@prefix foaf: <http://xmlns.com/foaf/0.1/>. | ||
|
||
# The owner has all permissions | ||
<#owner> | ||
a acl:Authorization; | ||
acl:agent <https://alice.localhost:8443/profile/card#me>; | ||
acl:accessTo <./>; | ||
acl:default <./>; | ||
acl:mode acl:Read, acl:Write, acl:Control. | ||
|
||
# The public has read permissions | ||
<#public> | ||
a acl:Authorization; | ||
acl:agentClass foaf:Agent; | ||
acl:accessTo <./>; | ||
acl:default <./>; | ||
acl:mode acl:Read. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
@prefix solid: <http://www.w3.org/ns/solid/terms#>. | ||
@prefix foaf: <http://xmlns.com/foaf/0.1/>. | ||
@prefix pim: <http://www.w3.org/ns/pim/space#>. | ||
@prefix schema: <http://schema.org/>. | ||
@prefix ldp: <http://www.w3.org/ns/ldp#>. | ||
|
||
<> | ||
a foaf:PersonalProfileDocument ; | ||
foaf:maker <https://alice.localhost:8443/profile/card#me> ; | ||
foaf:primaryTopic <https://alice.localhost:8443/profile/card#me> . | ||
|
||
<https://alice.localhost:8443/profile/card#me> | ||
a foaf:Person ; | ||
a schema:Person ; | ||
|
||
foaf:name "Alice Q." ; | ||
|
||
solid:account </> ; # link to the account uri | ||
pim:storage </> ; # root storage | ||
solid:oidcIssuer <https://localhost:8443> ; # identity provider | ||
|
||
ldp:inbox </inbox/> ; | ||
|
||
pim:preferencesFile </settings/prefs.ttl> ; # private settings/preferences | ||
solid:publicTypeIndex </settings/publicTypeIndex.ttl> ; | ||
solid:privateTypeIndex </settings/privateTypeIndex.ttl> . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# ACL resource for the public folder | ||
@prefix acl: <http://www.w3.org/ns/auth/acl#>. | ||
@prefix foaf: <http://xmlns.com/foaf/0.1/>. | ||
|
||
# The owner has all permissions | ||
<#owner> | ||
a acl:Authorization; | ||
acl:agent <https://alice.localhost:8443/profile/card#me>; | ||
acl:accessTo <./>; | ||
acl:default <./>; | ||
acl:mode acl:Read, acl:Write, acl:Control. | ||
|
||
# The public has read permissions | ||
<#public> | ||
a acl:Authorization; | ||
acl:agentClass foaf:Agent; | ||
acl:accessTo <./>; | ||
acl:default <./>; | ||
acl:mode acl:Read. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
User-agent: * | ||
# Allow all crawling (subject to ACLs as usual, of course) | ||
Disallow: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# ACL for the default robots.txt resource | ||
# Individual users will be able to override it as they wish | ||
# Public-readable | ||
|
||
@prefix acl: <http://www.w3.org/ns/auth/acl#>. | ||
@prefix foaf: <http://xmlns.com/foaf/0.1/>. | ||
|
||
<#owner> | ||
a acl:Authorization; | ||
|
||
acl:agent | ||
<https://alice.localhost:8443/profile/card#me>; | ||
|
||
acl:accessTo </robots.txt>; | ||
|
||
acl:mode | ||
acl:Read, acl:Write, acl:Control. | ||
|
||
<#public> | ||
a acl:Authorization; | ||
|
||
acl:agentClass foaf:Agent; # everyone | ||
|
||
acl:accessTo </robots.txt>; | ||
|
||
acl:mode acl:Read. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# ACL resource for the /settings/ container | ||
@prefix acl: <http://www.w3.org/ns/auth/acl#>. | ||
|
||
<#owner> | ||
a acl:Authorization; | ||
|
||
acl:agent | ||
<https://alice.localhost:8443/profile/card#me>; | ||
|
||
# Set the access to the root storage folder itself | ||
acl:accessTo <./>; | ||
|
||
# All settings resources will be private, by default, unless overridden | ||
acl:default <./>; | ||
|
||
# The owner has all of the access modes allowed | ||
acl:mode | ||
acl:Read, acl:Write, acl:Control. | ||
|
||
# Private, no public access modes |
15 changes: 15 additions & 0 deletions
15
test/resources/accounts/alice.localhost/settings/prefs.ttl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
@prefix dct: <http://purl.org/dc/terms/>. | ||
@prefix pim: <http://www.w3.org/ns/pim/space#>. | ||
@prefix foaf: <http://xmlns.com/foaf/0.1/>. | ||
@prefix solid: <http://www.w3.org/ns/solid/terms#>. | ||
|
||
<> | ||
a pim:ConfigurationFile; | ||
|
||
dct:title "Preferences file" . | ||
|
||
<https://alice.localhost:8443/profile/card#me> foaf:mbox <mailto:[email protected]> . | ||
|
||
<https://alice.localhost:8443/profile/card#me> | ||
solid:publicTypeIndex <publicTypeIndex.ttl> ; | ||
solid:privateTypeIndex <privateTypeIndex.ttl> . |
4 changes: 4 additions & 0 deletions
4
test/resources/accounts/alice.localhost/settings/privateTypeIndex.ttl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
@prefix solid: <http://www.w3.org/ns/solid/terms#>. | ||
<> | ||
a solid:TypeIndex ; | ||
a solid:UnlistedDocument. |
4 changes: 4 additions & 0 deletions
4
test/resources/accounts/alice.localhost/settings/publicTypeIndex.ttl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
@prefix solid: <http://www.w3.org/ns/solid/terms#>. | ||
<> | ||
a solid:TypeIndex ; | ||
a solid:ListedDocument. |
25 changes: 25 additions & 0 deletions
25
test/resources/accounts/alice.localhost/settings/publicTypeIndex.ttl.acl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# ACL resource for the Public Type Index | ||
|
||
@prefix acl: <http://www.w3.org/ns/auth/acl#>. | ||
@prefix foaf: <http://xmlns.com/foaf/0.1/>. | ||
|
||
<#owner> | ||
a acl:Authorization; | ||
|
||
acl:agent | ||
<https://alice.localhost:8443/profile/card#me>; | ||
|
||
acl:accessTo <./publicTypeIndex.ttl>; | ||
|
||
acl:mode | ||
acl:Read, acl:Write, acl:Control. | ||
|
||
# Public-readable | ||
<#public> | ||
a acl:Authorization; | ||
|
||
acl:agentClass foaf:Agent; # everyone | ||
|
||
acl:accessTo <./publicTypeIndex.ttl>; | ||
|
||
acl:mode acl:Read. |
13 changes: 13 additions & 0 deletions
13
test/resources/accounts/alice.localhost/settings/serverSide.ttl.acl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
@prefix acl: <http://www.w3.org/ns/auth/acl#>. | ||
@prefix foaf: <http://xmlns.com/foaf/0.1/>. | ||
|
||
<#owner> | ||
a acl:Authorization; | ||
|
||
acl:agent | ||
<https://alice.localhost:8443/profile/card#me>; | ||
|
||
acl:accessTo <./serverSide.ttl>; | ||
|
||
acl:mode acl:Read . | ||
|
Oops, something went wrong.