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
Implement an EVERYONE principal in WebACAuthorizationDelegate. #11
Conversation
peichman-umd
commented
Sep 1, 2015
- Name of the principal is the string value of the URI for foaf:Agent
- Name of the principal is the string value of the URI for foaf:Agent
/** | ||
* FOAF Agent | ||
*/ | ||
public static final String FOAF_AGENT_VALUE = "http://xmlns.com/foaf/0.1/Agent"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To make foaf
more reusable, maybe you can use the pattern established above of defining the foaf
namespace, then your FOAF_AGENT_VALUE
can append to the namespace.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That would be simple enough to add, though do we foresee using more FOAF properties or classes in the WebAC auth module? The YAGNI principle would pull in the direction of leaving it as-is until we need to add the next FOAF-namespaced constant.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For my money, YAGNI is really about functionality. This is about code sanitation. A separate namespace constant is easier to read and understand.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Additionally, foaf:member
is expected for the acl:agentClass
scenario.
https://www.w3.org/wiki/WebAccessControl
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Both good reasons. Stand by for updated PR.
Looks good, pending response to code review comment: |
👍 pending @awoods review comment. |
👍 |
Merged via 6a6b0ff |