Skip to content

No 'Authorization: Bearer' header found. #5512

@Krassmus

Description

@Krassmus

Steps to reproduce

  1. Have an oauth 2 access token and try to access nextcloud via webdav.
  2. create a curl-request with the "Authorization: Bearer xyz" header where xyz is 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions