Query-Solid
Query-Solid copied to clipboard
Fetch ACL file from Link Headers
It would be very nice if there was a way to fetch ACLs for a file according to the Link Headers, as specified in the Solid Spec: https://github.com/solid/web-access-control-spec#acl-resource-location-discovery
Right now I do not believe there's a way to get this information using LDFlex directly, as it is part of the response header which is not exposed to the users.
How could the interface for this look like?
data["https://pod.example/document"].acl()
Other proposals?
@angelo-v I like that actually!
Is this the correct repo to implement it? Or are upstream packages (ldflex, communica, ...) involved? Where do we have access to the headers?
Is this the correct repo
It's Solid-specific, so this is the one!
Where do we have access to the headers?
We'd have to tap into the fetcher. So basically, when the .acl()
is called, it should fetch the document, inspect the headers, and then fetch the ACL document and take it from there.