-
Notifications
You must be signed in to change notification settings - Fork 4
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
add gitlab and github token Auth support #14 #18
Conversation
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.
This looks great! I have an idea which I can describe better in a commit. I'm gonna push it up to your feature branch and get your thoughts, we can always revert later.
There are two things I like about this fluent-configurator pattern:
For security's sake, you want the auth to be specific only to the repository which the user has configured, and you never want to send credentials that the user intended for Lemme know what you think. If you're okay with the basic idea but prefer different method names, feel free to change them and/or add javadoc. Please test the auth locally on your machine too, I didn't do any manual testing. Once you're satisfied with the API and that the auth works, please add a changelog entry and I'll merge and release. I'm happy to update the docs myself, once it's released I can put in links to the javadoc for |
I really like the fluent-configurator idea. But I had problems with your first approach because I only checked this yet with the (locally customized) ignored unit-test |
This reverts commit 9bcddff.
…, so we weren't really functional anyway.
I'm not inclined to to turn You raised a great point about double-setting the plugins. That is a security feature (once a user sets up blowdryer, a malicious plugin should not be able to redirect it). The Auth should really be set atomically with the repo for the same reason, so I reverted your Once you are satisfied with the tests, I am satisified to merge and release. |
I'm fine with your changes. The unit tests for auth against github and gitlab are working, but i have trouble setting up local Test in a real gradle project. I dont think these troubles are caused by these changes. my changelog entries have been reverted with the interface commit, maybe you want to restore those, and documentation is probably missing |
ok, i was finally able to successfully test the changes in a local real world project. Any chance to merge this soon and release a new version so we can start to actually use it? thanks |
Published in |
i am awaiting your comments, this works to support github and gitlab private repos in my Tests #14