-
-
Notifications
You must be signed in to change notification settings - Fork 122
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
Refactor authorization #93
Conversation
Remove duplication issues from lib/gemstash/cli/setup Add tests around some of the changed code
This will help for a later refactoring
…by another authorization mechanism (like LDAP)
@smellsblue would named parameters make sense for the
|
@rjocoleman well, I kind of think such options should be wrapped in the object before it gets to the My intent for the The ultimate goal of this refactoring was to pave the way for the authorization setup to be replaceable with other authentication/authorization via a plugin, specifically LDAP (which someone had requested in the slack channel). I'm hoping it just has raw access to everything so the plugin could do much more complicated things if necessary. Anyways, I think I have another commit to do for this now....... thanks for getting me to think a little deeper on this :-) |
This is half baked but what about something like this: https://github.com/bundler/gemstash/compare/refactor-authorization...rjocoleman:refactor-authorization?expand=1 |
Rename 'server' to 'servable'
…emstash into refactor-authorization
Expanded - Refactor authorization - Add protected fetch for private gems
@smellsblue Are there any further blockers here you need assistance with? |
@rjocoleman I think I'm good with this as is, but I was hoping to get @pcarranza to review it before I merged it in. If you would like to do the reviewing on what I've done, I think I'd be ok merging it in now :-) |
Sorry, been extremely busy. Will review today. |
Refactor authorization. This includes #92 along with a refactoring to isolate authorization in a way to be easily replaceable.