mirror of
https://github.com/CommunitySolidServer/CommunitySolidServer.git
synced 2024-10-03 14:55:10 +00:00
feat: Add required ACP headers
This commit is contained in:
@@ -10,8 +10,18 @@
|
||||
"@id": "urn:solid-server:default:Middleware",
|
||||
"@type": "SequenceHandler",
|
||||
"handlers": [
|
||||
{ "@id": "urn:solid-server:default:Middleware_Header" },
|
||||
{ "@id": "urn:solid-server:default:Middleware_Cors" }
|
||||
{
|
||||
"comment": "These handlers can be executed in any order.",
|
||||
"@id": "urn:solid-server:default:ParallelMiddleware",
|
||||
"@type": "ParallelHandler",
|
||||
"handlers": [
|
||||
{ "@id": "urn:solid-server:default:Middleware_Header" }
|
||||
]
|
||||
},
|
||||
{
|
||||
"comment": "CORS has to be last since it can close the connection.",
|
||||
"@id": "urn:solid-server:default:Middleware_Cors"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
|
||||
@@ -37,6 +37,28 @@
|
||||
"@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",
|
||||
|
||||
Reference in New Issue
Block a user