Query-Solid icon indicating copy to clipboard operation
Query-Solid copied to clipboard

Fetch ACL file from Link Headers

Open james-martin-jd opened this issue 5 years ago • 4 comments

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.

james-martin-jd avatar Dec 03 '19 15:12 james-martin-jd

How could the interface for this look like?

data["https://pod.example/document"].acl()

Other proposals?

angelo-v avatar Apr 17 '20 19:04 angelo-v

@angelo-v I like that actually!

RubenVerborgh avatar Apr 17 '20 19:04 RubenVerborgh

Is this the correct repo to implement it? Or are upstream packages (ldflex, communica, ...) involved? Where do we have access to the headers?

angelo-v avatar Apr 17 '20 20:04 angelo-v

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.

RubenVerborgh avatar Apr 17 '20 20:04 RubenVerborgh