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 'loggedIn' permission type #24

Open
bjdmeest opened this issue Aug 30, 2024 · 3 comments
Open

add 'loggedIn' permission type #24

bjdmeest opened this issue Aug 30, 2024 · 3 comments
Assignees

Comments

@bjdmeest
Copy link

right now the 'public' permission type actually only works for logged in people eg

<#7d85dcfb-b26b-4183-b860-73b7c6d63309> a <http://www.w3.org/ns/auth/acl#Authorization>;
    <http://www.w3.org/ns/auth/acl#mode> <http://www.w3.org/ns/auth/acl#Read>;
    <http://www.w3.org/ns/auth/acl#accessTo> <https://pod.playground.solidlab.be/user6/index.json>;
    <http://www.w3.org/ns/auth/acl#agentClass> <http://xmlns.com/foaf/0.1/Agent>. #so this is only for logged in users

Add a loggedIn permission type for this functionality, and update the public permission type to be actually public (ie also without needing to log in)

@NuttyShrimp
Copy link
Collaborator

I've taken a quick look at the acl definitions, but I can't seem to find a valid definition to allow people to access a file without logging in.
I've tried the following but without much luck

<#public> a acl:Authorization;
    acl:accessTo <https://pod.playground.solidlab.be/user9/README>;
    acl:mode acl:Read.

@bjdmeest
Copy link
Author

bjdmeest commented Sep 4, 2024

I'm not sure how it works (but you could inspect the ACL later), but https://docs.inrupt.com/developer-tools/javascript/client-libraries/tutorial/manage-wac/#set-public-access seems to promise this functionality, no?

@NuttyShrimp
Copy link
Collaborator

So to clarify after our messages yesterday.

  • A new subject should be introduced "loggedIn", this shouldn't replace any existing at this point
  • The subject should control 1 entry in the ACL file. Where the acl:AgentClass equals acl:AuthenticatedAgent.
  • At this moment the inrupt SDK does support agent classes but does not contain a public facing function to add/edit an entry with a custom agent.

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

No branches or pull requests

2 participants