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

add isValidTtl function #152

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

bourgeoa
Copy link
Collaborator

This function is made to validate :

  • any contentType/turtle
  • if an .acl file has a valid acl content :
    . has a URI 'Control'
    . is the content structure valid with 2 options parameters :
    .. (with an options.aclValid to allow as a not blocking error with acl: Authorization missing)
    .. (with options.aclInherit to make it an obligation (to avoid a no access to the folder content))
    . each acl block should be composed of :
   :ReadWrite
  - acl authorization type
      a acl: Authorization
  - a combination of one or more agent/agentClass/group/origin
     acl:agent c:me;                           # agent
      acl:agentClass foaf:Agent;                # everybody
      acl:agentClass acl:AuthenticatedAgent     # logged in agent
      acl:agentGroup tes:this                   # group
      acl:origin <https://pod.solid.community>  # trusted app/agent bot
  - the accessTo resource
      acl:accessTo <${accessTo}>;
  - for a folder an acl:default 
      acl:default </>;
  - a combination of authorization : Read/Append/Write/Control
      acl:mode acl:Read, acl:Write.

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

Successfully merging this pull request may close these issues.

1 participant