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

Removed requirement for fedoraUser in auth'ed connections #357

Merged
merged 1 commit into from May 15, 2014
Merged

Removed requirement for fedoraUser in auth'ed connections #357

merged 1 commit into from May 15, 2014

Conversation

ksclarke
Copy link
Contributor

https://www.pivotaltracker.com/story/show/70306268

Removed the requirement for fedoraUser, but left the hard-coded option there as a default configuration. Now you can configure a Tomcat role in ContainerRolesPrincipalProvider, for instance, and the user with that role doesn't also have to be in the fedoraUser role (or you can have principal configured through an HTTP header from any configured user role, rather than just the fedoraUser one).

But, you do have to configure the any new role you want to use through BASIC auth in the web.xml file:

<auth-constraint>
  <role-name>fedoraUser</role-name>
  <role-name>fedoraAdmin</role-name>
  <role-name>my-new-tomcat-role</role-name>
</auth-constraint>

I was unable to find a way to make it more dynamic (not require that extra configuration -- which is what I was originally hoping for). This might make continuing to use fedoraUser more attractive since it's pre-configured, but now there is an option to use another role if you want to configure it.

If this PR is accepted, a note should be added to https://www.pivotaltracker.com/story/show/70710348, noting this as something else to document.

awoods pushed a commit that referenced this pull request May 15, 2014
…306268

Removed requirement for fedoraUser in auth'ed connections

Addresses: https://www.pivotaltracker.com/story/show/70306268
@awoods awoods merged commit 3515595 into fcrepo:master May 15, 2014
@ksclarke ksclarke deleted the remove-fedoraUser-dependency-70306268 branch July 3, 2014 16:01
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

2 participants