Skip to content
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

No support for Bearer Token authentication #61

Open
peppermenta opened this issue Oct 15, 2022 · 2 comments
Open

No support for Bearer Token authentication #61

peppermenta opened this issue Oct 15, 2022 · 2 comments

Comments

@peppermenta
Copy link

Hello Collaborators,

Describe the bug
401 Authorization error on trying to connect to a WebDAV server with Bearer type of authentication

Software

  • OS: Ubuntu 20.04 LTS
  • Golang: go version go1.19.2 linux/amd64
  • Version: latest studio-b12/gowebdav (loaded via go get)

To Reproduce

  1. Connect to any WebDAV server which requires Bearer type of authentication. I used OwnCloud
  2. Try to read the list of directories using c.ReadDir("/") (Any other operation also fails)
  3. Error: 401 Authorization Error

Expected
No authorization error, the client should be able to connect to the server and execute any operation

Additional context
This seems to be due the fact that only two types of auth: Basic and Digest are supported.
I would be willing to work on a PR to add Bearer authentication support

@chripo
Copy link
Member

chripo commented Oct 15, 2022

Sounds good to me.
This should be straightforward.
PR welcome.

@chripo
Copy link
Member

chripo commented Jun 22, 2023

Should be much easier now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants