-
Notifications
You must be signed in to change notification settings - Fork 62
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 option to authenticate to an upstream mirror #114
Conversation
First thank you for the PR! It will be a valuable addition to the project.
The new page should contain the existing documentation for this feature and the new additional configuration. To answer one of your questions: I personally prefer one class/enum/struct per file. |
This is awesome, excellent work! I would consider allowing Windows user to opt-in to encrypting their secret using DPAPI, but definitely not a blocker to landing this. |
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.
Thanks for the great addition!
tests/BaGetter.Core.Tests/Upstream/UpstreamAuthenticationTests.cs
Outdated
Show resolved
Hide resolved
tests/BaGetter.Core.Tests/Upstream/UpstreamAuthenticationTests.cs
Outdated
Show resolved
Hide resolved
Thanks for the feedback, will try to address as soon as I can.
Interesting idea. Adding this will also need to have a proper ux for that. Either a cli command creating the hashed pw, or creating and updating the field in the appsettings (though appsettings aren't supposed to be automatically written since you will lose formatting and comments). |
582a10d
to
4d47994
Compare
I think I've adressed everything including the feedback from @FroggieFrog. |
Your original issue was the authentication against a GitHub feed if I remember correctly. |
For using as a test feed yeah, for actual distribution more only as a gimmick :P |
I think there is nothing wrong when we publish BaGetter on NuGet and here on GitHub. At least from my point of view, there is nothing to be said against it. |
753703f
to
9850ed5
Compare
adds missing verify share common setup
9850ed5
to
96c0dd1
Compare
Sorry for the late update. Somehow oversaw the review response. |
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.
Back from vacation! Looks great, just a minor change. Has anyone tested this yet? Otherwise I'll gladly checkout and test it.
Can I help with something to get this merged? |
Signed-off-by: Marlon Regenhardt <[email protected]>
I will merge it like this, would appreciate it if you made another PR to improve the exception message there. |
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.
The last remaining comment from before can be worked on after it is merged too.
Addresses https://github.com/orgs/bagetter/discussions/88
Open questions:
A lot of the composition is done via DI and private methods so there are also little points to mock nicely.
If you have any suggestions or requests to improve this, I'm open.
I've also considered adding a dedicated mocking library for http requests to reduce boilerplate, but would like your feedback first before adding new depencies to a project.