read-write-web / rww-play

read write web Play
59 stars 19 forks source link

ACLs should link to themselves as their own ACLs #162

Closed bblfish closed 8 years ago

bblfish commented 8 years ago

See issue 61: All resources MUST have at least one "acl" Link relation in solid/solid.

GET /document.acl
...

200 Ok
Link: <>; rel="acl"

[] acl:accessTo <>;
   acl:mode acl:Write, acl:Read;
   acl:agent <card#me> .

Currently rww-play does not do this, but it makes a lot of sense, and should simplify the client side code.

akuckartz commented 8 years ago

How was this issue resolved?

bblfish commented 8 years ago

Thanks for the question. Somehow forgot to add the explanation here.

I have proved to my own satisfaction in issue 61 that the actual usage of acls with wac:Control is that they are their own acl, so that this is just making explicit what is implicit in accepted usage.

Then I discovered that rww-play already implements this. Probably just because it is a natural thing to do when you try to implement access control without wac:Control - see issue 51: do we need wac:Control? - which we do.

But we can re-open this issue here if new relevant arguments come to bear.

bblfish commented 8 years ago

We have acls refer to acls in rww-play since the November 2013 commit 2198c642a4c214df8b19716f46a082085197f38d. I don't think I even mentioned this in the PR, as it must have seemed obvious when building it that this was a good idea.