Skip to content

bake user query params into authentication system#772

Merged
tpetr merged 3 commits into
masterfrom
auth-email
Nov 24, 2015
Merged

bake user query params into authentication system#772
tpetr merged 3 commits into
masterfrom
auth-email

Conversation

@tpetr

@tpetr tpetr commented Nov 23, 2015

Copy link
Copy Markdown
Contributor

the ?user=email authentication scheme is good for when people are trying Singularity out (i.e. they want to record that user X did an action, but dont want to set up LDAP yet), but required littering all our resource methods with @QueryParam("user"), which began to get nasty.

At the same time, many of our resource methods just record the action taker based on the ?user= field, and ignore the injected Optional<SingularityUser> completely, which can be completely wrong!

This PR:

  • Adds SingularityQueryParamAuthenticator, which keys off of the user query param
  • Adds SingularityDummyDatastore, which always yields a user based off a username with no groups defined for it
  • Removed all usage of @QueryParam("user") in favor of using the injected Optional<SingularityUser>

Once this is merged, #759 will function properly.

@tpetr tpetr added this to the 0.4.6 milestone Nov 23, 2015
tpetr pushed a commit that referenced this pull request Nov 24, 2015
bake user query params into authentication system
@tpetr tpetr merged commit 2f58f99 into master Nov 24, 2015
@tpetr tpetr removed hs_qa labels Nov 24, 2015
@ssalinas ssalinas deleted the auth-email branch April 5, 2016 15:34
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.

1 participant