Add Authorization Bearer token for Sardine WebDav

569 Views Asked by At

I am researching Sardine Java library for WebDav access. On the User Guide page there is Authorization section, but uses only credentials type of authorization.

The WebDav server which I am trying to access supports Bearer Token authorization.

Is it possible to configure Sardine to include Authorization header in the requests, so I can use token instead of username/password?

1

There are 1 best solutions below

0
On BEST ANSWER

Yes, I used this constructor public SardineImpl(String bearerAuth) and it worked fine