Expose session based authentication through mount point type#23261
Expose session based authentication through mount point type#23261MorrisJobke merged 1 commit intomasterfrom
Conversation
|
|
||
| public function getMountType() { | ||
| return 'external'; | ||
| return ($this->storageConfig->getAuthMechanism() instanceof SessionCredentials) ? 'external-session' : 'external'; |
There was a problem hiding this comment.
There seems to be some code in place where for the mount root 'external-root' is set for this, but I cannot figure out currently where. Maybe @icewind1991 knows, since this seems to be one thing that doesn't work anymore with this change.
|
I'm not a fan of re-using the mount point field for this, since it can cause issues for code relying on the values of that field. Adding a separate field would be my preference |
8fb946d to
9af668b
Compare
Yes, I cleaned that up now. |
ba9269c to
fe940c0
Compare
fe940c0 to
1b72185
Compare
|
🏓 for review again |
|
needs rebase |
Signed-off-by: Julius Härtl <jus@bitgrid.net>
1b72185 to
35e5cc8
Compare
|
Rebased |
|
🤖 beep boop beep 🤖 Here are the logs for the failed build: Status of 633: failuremysql8.0-php7.4Show full logintegration-ldap-openldap-uid-features
Show full log |
With this apps can check whether an external storage mountpoint uses credentials stored in the session and can act upon that. An example scenario would be Collabora/ONLYOFFICE or the direct editing endpoint on mobile/desktop clients that cannot be used with session based auth since the session is not available in the unauthenticated requests.
Reference implementation for Collabora nextcloud/richdocuments#1178