Skip to content

Fetch ACL file from Link Headers #48

Description

@james-martin-jd

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.

Activity

  1. angelo-v commented on Apr 17, 2020

    @angelo-v

    How could the interface for this look like?

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

    Other proposals?

  2. RubenVerborgh commented on Apr 17, 2020

    @RubenVerborgh
    Member

    @angelo-v I like that actually!

  3. angelo-v commented on Apr 17, 2020

    @angelo-v

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

  4. RubenVerborgh commented on Apr 17, 2020

    @RubenVerborgh
    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions