-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Description
Steps to reproduce
- Have an oauth 2 access token and try to access nextcloud via webdav.
- create a curl-request with the "Authorization: Bearer xyz" header where
xyzis the access token.
Expected behaviour
I should have got access to the web dav objects
Actual behaviour
Nextcloud tells me en error message
<d:error xmlns:d="DAV:" xmlns:s="http://sabredav.org/ns">
<s:exception>Sabre\DAV\Exception\NotAuthenticated</s:exception>
<s:message>No 'Authorization: Basic' header found. Either the client didn't send one, or the server is misconfigured, No 'Authorization: Bearer' header found. Either the client didn't send one, or the server is mis-configured</s:message>
</d:error>
But it's from! I have clearly added the header with bearer token (but not basic auth).
Server configuration
Operating system:
ubuntu
Web server:
apache
Database:
mysql
PHP version:
5.5
Nextcloud version: (see Nextcloud admin page)
12
Updated from an older Nextcloud/ownCloud or fresh install:
fresh
Where did you install Nextcloud from:
manually
Signing status:
Signing status
No errors have been found.
Are you using external storage, if yes which one: local/smb/sftp/...
no
Are you using encryption: yes/no
ssl
Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/...
no
Client configuration
Browser:
php curl
Operating system:
ubuntu
Logs
Web server error log
no log error at that time
I thought this could be related to #5372 but the fix there didn't seem to work for me.