-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Closed
Labels
Milestone
Description
Because the token is passed as basic auth, you cannot do a simple get without this parameter, which is not what a basic auth is made for anyway.
We should use the cookie for authentication, and let us direct access any file a PROPFIND returns as this is most likely not compliant to any dav endpoint :)
server/apps/dav/lib/Connector/PublicAuth.php
Lines 76 to 93 in 1b46621
| /** | |
| * Validates a username and password | |
| * | |
| * This method should return true or false depending on if login | |
| * succeeded. | |
| * | |
| * @param string $username | |
| * @param string $password | |
| * | |
| * @return bool | |
| * @throws \Sabre\DAV\Exception\NotAuthenticated | |
| */ | |
| protected function validateUserPass($username, $password) { | |
| try { | |
| $share = $this->shareManager->getShareByToken($username); | |
| } catch (ShareNotFound $e) { | |
| return false; | |
| } |
server/apps/files_sharing/js/public.js
Line 59 in 5e4eda1
| userName: token, |