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

acl:Authorization for multiple agents/targets #251

Closed
tpluscode opened this issue Mar 16, 2021 · 3 comments
Closed

acl:Authorization for multiple agents/targets #251

tpluscode opened this issue Mar 16, 2021 · 3 comments

Comments

@tpluscode
Copy link

Related to #169

Is it valid to have multiple objects of acl:accessTo, acl:agent, acl:agentClass and other predicates?

The readme of solid/web-access-control-spec suggests only one for each of those but I don't see anything speaking against..

@acoburn
Copy link
Member

acoburn commented Mar 16, 2021

An ACL can most certainly have multiple triples of these types.

Using multiple acl:agent triples is very common. Multiple acl:agentClass is less common, as foaf:Agent is (generally) the only value used with that predicate. Having multiple acl:accessTo predicates is more an implementation decision, specifically whether a given ACL resource can be used by multiple resources -- not in the inheritance sense but rather as the target of a rel=acl link header. Some implementations of WebAC support that (e.g. Fedora Commons); Solid generally doesn't given that the lifecycle of an ACL resource is generally bound to the resource it protects.

@tpluscode
Copy link
Author

I'm looking at using WAC internally to control access to a Hydra API. I will certainly want to use the group feature for much more than just foaf:Agent.

And definitely would take advantage of multiple values for acl:accessTo(Class) as for example I so far defined as a generic rule to make an API accessible in general

prefix hydra: <http://www.w3.org/ns/hydra/core#>
prefix foaf: <http://xmlns.com/foaf/0.1/>
prefix acl: <http://www.w3.org/ns/auth/acl#>

<> a acl:Authorization ;
   acl:agentClass foaf:Agent ;
   acl:accessToClass hydra:Resource, hydra:Collection ;
   acl:mode acl:Read ;
.

@csarven
Copy link
Member

csarven commented Jul 1, 2021

Thanks for this issue and discussion. Closing this issue as consensus is deemed to be captured in WAC Editor's Draft: https://solid.github.io/web-access-control-spec/ . See #authorization-representation , #authorization-conformance . Please use https://github.com/solid/web-access-control-spec for future discussion.

@csarven csarven closed this as completed Jul 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants