mirror of
https://github.com/CommunitySolidServer/CommunitySolidServer.git
synced 2024-10-03 14:55:10 +00:00
48 lines
1.9 KiB
JSON
48 lines
1.9 KiB
JSON
{
|
|
"@context": "https://linkedsoftwaredependencies.org/bundles/npm/@solid/community-server/^6.0.0/components/context.jsonld",
|
|
"import": [
|
|
"css:config/ldp/authorization/readers/acp.json",
|
|
"css:config/ldp/authorization/readers/default.json"
|
|
],
|
|
"@graph": [
|
|
{
|
|
"comment": "The templates for ACP authorization documents are in the acp subfolder.",
|
|
"@id": "urn:solid-server:default:TemplatedResourcesGenerator",
|
|
"@type": "SubfolderResourcesGenerator",
|
|
"subfolders": [ "acp" ]
|
|
},
|
|
{
|
|
"comment": "Middleware exposes the required ACP headers.",
|
|
"@id": "urn:solid-server:default:ParallelMiddleware",
|
|
"@type": "ParallelHandler",
|
|
"handlers": [{
|
|
"@type": "AcpHeaderHandler",
|
|
"targetExtractor": { "@id": "urn:solid-server:default:TargetExtractor" },
|
|
"strategy": { "@id": "urn:solid-server:default:AcrIdentifierStrategy" },
|
|
"modes": [
|
|
"http://www.w3.org/ns/auth/acl#Read",
|
|
"http://www.w3.org/ns/auth/acl#Append",
|
|
"http://www.w3.org/ns/auth/acl#Write",
|
|
"http://www.w3.org/ns/auth/acl#Control"
|
|
],
|
|
"attributes": [
|
|
"http://www.w3.org/ns/solid/acp#target",
|
|
"http://www.w3.org/ns/solid/acp#agent",
|
|
"http://www.w3.org/ns/solid/acp#client",
|
|
"http://www.w3.org/ns/solid/acp#issuer"
|
|
]
|
|
}]
|
|
},
|
|
{
|
|
"comment": "In case of ACP authorization the ACR resources determine authorization.",
|
|
"@id": "urn:solid-server:default:AuthResourceHttpHandler",
|
|
"@type": "RouterHandler",
|
|
"args_baseUrl": { "@id": "urn:solid-server:default:variable:baseUrl" },
|
|
"args_targetExtractor": { "@id": "urn:solid-server:default:TargetExtractor" },
|
|
"args_allowedMethods": [ "*" ],
|
|
"args_allowedPathNames": [ "^/.*\\.acr$" ],
|
|
"args_handler": { "@id": "urn:solid-server:default:LdpHandler" }
|
|
}
|
|
]
|
|
}
|