-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Expose session based authentication through mount point type #23261
Conversation
public function getMountType() { | ||
return 'external'; | ||
return ($this->storageConfig->getAuthMechanism() instanceof SessionCredentials) ? 'external-session' : 'external'; |
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.
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 |
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.
Makes sense
needs rebase |
Signed-off-by: Julius Härtl <[email protected]>
1b72185
to
35e5cc8
Compare
Rebased |
🤖 beep boop beep 🤖 Here are the logs for the failed build: Status of 633: failuremysql8.0-php7.4Show full log
integration-ldap-openldap-uid-features
Show full log
|
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.
Code looks good 👍
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