Add user provided auth mechanism#21790
Conversation
|
By analyzing the blame information on this pull request, we identified @MorrisJobke, @Xenopathic and @nickvergessen to be potential reviewers |
|
I feel as though this is a really hacky way to implement this, with the separate controller, custom logic in the StoragesServices, and custom JS. I think a better way would be to leverage standard storage saving procedures, but have a way to define certain parameters as being user-modifyable, so they don't get greyed out in the settings area. The whole point of the super-generic backend code was to avoid needing custom logic like this 🙊 |
7a72208 to
855f9f1
Compare
|
Removed the custom controller and auth mechanism specific logic from the js. the |
There was a problem hiding this comment.
Some leftovers need to be removed
|
I like this a lot! Once the other PR is merged and this rebased, I'll review it |
855f9f1 to
519f82e
Compare
|
@icewind1991 please rebase to include the changes from the other PR |
519f82e to
a68bbe3
Compare
|
rebased |
|
@icewind1991 please fix the failing JS unit tests |
|
Steps:
In all cases, the indicator was red and after refreshing the page, I had 3 SFTP configs. |
a68bbe3 to
3c80c8f
Compare
|
@icewind1991 please fix the bugs I mentionned above. |
|
|
Basically on my env it doesn't work like in your screenshots here #21790 (comment). |
There was a problem hiding this comment.
IUserProvided instead of UserProvided ?
|
Also broken on master |
|
@icewind1991 please rebase, the master bug was merged |
37acfbf to
1426ceb
Compare
|
@DeepDiver1975 all tests pass, re-review ? |
|
@icewind1991 you force pushed and killed my commit which cleaned up some use statments 👿 |
|
@DeepDiver1975 you might be able to cherry-pick them from your local git branch |
the changeset is not worth the effort - but the 'disrespect' in contribution is worth a discussion |
|
Sorry, didn't see the commit while doing the rebasing |
|
@DeepDiver1975 I also tend to rebase+force push often as it seldom happens that people push on my branches, easy to be overlooked. When pushing it's best to also post a comment to say so to make sure the PR owner gets a notification. I also didn't see your commit 😦 Let's be more careful in the future. |
|
@DeepDiver1975 any remaining objections to merging this PR ? |
no 👍 |
|
needs rebase - conflict in setting.js |
|
Noooooooooooooooooooooh. @icewind1991 ? |
1426ceb to
6b18134
Compare
Add user provided auth mechanism




This adds an authentication option for admin defined mounts that require the user to enter the credentials on first use.
Currently the user can set his credentials in the personal settings, a nice dialog for entering the credentials if they are missing/wrong is to be added separately (iirc @jmaciasportela was going to work on that)
cc @PVince81 @Xenopathic @jmaciasportela