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

Try to use *.ACL files to programatically change permissions inside POD #148

Closed
fincamd opened this issue Apr 2, 2020 · 5 comments
Closed
Assignees
Labels
reviewEnhancement Enhancements proposed on project review todo New task to do

Comments

@fincamd
Copy link
Contributor

fincamd commented Apr 2, 2020

Manage permissions with route sharing thingies.

@fincamd fincamd added todo New task to do reviewEnhancement Enhancements proposed on project review labels Apr 2, 2020
@jesQM jesQM self-assigned this Apr 2, 2020
@jesQM jesQM mentioned this issue Apr 2, 2020
@jesQM
Copy link
Contributor

jesQM commented Apr 2, 2020

https://github.com/Otto-AA/solid-acl-utils

This library may help to do the job

@jesQM
Copy link
Contributor

jesQM commented Apr 4, 2020

Just made a simple demonstration of the use of the library over here: 817a754

(It has hardcoded stuff regarding my profile, so those things should be changed according to yours for it to work with your session)

Although the library is in a beta stage, it seems to work correctly, nevertheless, it seems its just a cover for the real library: https://github.com/Otto-AA/solid-acl-parser
However, the acl parser requires some knowledge of turtle format (which I have no idea), so, unless I require something which im not able of doing with the beta library, there is no need to use the parser.

@jesQM
Copy link
Contributor

jesQM commented Apr 16, 2020

Just found an inconvenient.
By default the files we create "inherit" permissions from parent's acls, meaning a file may not have a .acl, so, if you try to edit or access it, you are presented with a 404 which does not allow you to apply changes.

There is an example of the creator of the library which, after some testing, seems to bypass this problem, however, as the example's code is obfuscated im not sure if there is a specific functions which is helping out or what.

Will try to solve it.

Edit - ye, I was looking at the wrong js script, thats why I couldn't read a thing

@jesQM
Copy link
Contributor

jesQM commented Apr 18, 2020

Just asked Otto to check whether he can enbrighten me: Otto-AA/solid-acl-utils#5

@jesQM
Copy link
Contributor

jesQM commented Apr 18, 2020

He answered pretty fast, and after some testing it does work now, however, will implement whatever I have left of the interface and close the issue when finished.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
reviewEnhancement Enhancements proposed on project review todo New task to do
Projects
None yet
Development

No branches or pull requests

2 participants