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

Implement an EVERYONE principal in WebACAuthorizationDelegate. #11

Closed
wants to merge 2 commits into from

Conversation

peichman-umd
Copy link
Contributor

  • 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";
Copy link
Member

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.

Copy link
Contributor Author

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.

Copy link
Contributor

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.

Copy link
Member

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

Copy link
Contributor Author

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.

@awoods
Copy link
Member

awoods commented Sep 1, 2015

Looks good, pending response to code review comment:
#11 (comment)

@whikloj
Copy link
Member

whikloj commented Sep 1, 2015

👍 pending @awoods review comment.

@acoburn
Copy link
Contributor

acoburn commented Sep 2, 2015

👍

@acoburn
Copy link
Contributor

acoburn commented Sep 2, 2015

Merged via 6a6b0ff

@acoburn acoburn closed this Sep 2, 2015
@peichman-umd peichman-umd deleted the everyone-principal branch September 2, 2015 13:59
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.

None yet

5 participants