Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fetch ACL file from Link Headers #48

Open
james-martin-jd opened this issue Dec 3, 2019 · 4 comments
Open

Fetch ACL file from Link Headers #48

james-martin-jd opened this issue Dec 3, 2019 · 4 comments

Comments

@james-martin-jd
Copy link

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.

@angelo-v
Copy link

How could the interface for this look like?

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

Other proposals?

@RubenVerborgh
Copy link
Member

@angelo-v I like that actually!

@angelo-v
Copy link

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

@RubenVerborgh
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants