mirror of
https://github.com/CommunitySolidServer/CommunitySolidServer.git
synced 2024-10-03 14:55:10 +00:00
feat: Use PermissionReaders to determine available permissions
These readers will determine which permissions are available for the incoming credentials. Their results then get combined in a UnionReader and authorized in a PermissionBasedAuthorizer
This commit is contained in:
@@ -57,11 +57,14 @@
|
||||
},
|
||||
{
|
||||
"comment": "Block external access to the storage containers to avoid exposing internal data.",
|
||||
"@id": "urn:solid-server:default:PathBasedAuthorizer",
|
||||
"PathBasedAuthorizer:_paths": [
|
||||
"@id": "urn:solid-server:default:PathBasedReader",
|
||||
"PathBasedReader:_paths": [
|
||||
{
|
||||
"PathBasedAuthorizer:_paths_key": "^/.internal(/.*)?$",
|
||||
"PathBasedAuthorizer:_paths_value": { "@type": "DenyAllAuthorizer" }
|
||||
"PathBasedReader:_paths_key": "^/.internal(/.*)?$",
|
||||
"PathBasedReader:_paths_value": {
|
||||
"@type": "AllStaticReader",
|
||||
"allow": false
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user