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

feat: support auth for HttpBackend #1359

Merged
merged 1 commit into from
Feb 17, 2023
Merged

feat: support auth for HttpBackend #1359

merged 1 commit into from
Feb 17, 2023

Conversation

Young-Flash
Copy link
Member

@Young-Flash Young-Flash commented Feb 17, 2023

I hereby agree to the terms of the CLA available at: https://databend.rs/dev/policies/cla/

Summary

add Basic and Bearer authorization support for HttpBackend
#1237

Copy link
Member

@Xuanwo Xuanwo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thank you very much for your contribution!

@Young-Flash
Copy link
Member Author

seems all PR failed at CI / msrv_check: error: package time-macros v0.2.7 cannot be built because it requires rustc 1.62.0 or newer, while the currently active rustc version is 1.60.0
@Xuanwo

@Xuanwo
Copy link
Member

Xuanwo commented Feb 17, 2023

Related to time-rs/time#551, please ignore it for now.

@Xuanwo Xuanwo merged commit 100349b into apache:main Feb 17, 2023
imWildCat pushed a commit to imWildCat/opendal that referenced this pull request Feb 17, 2023
Xuanwo added a commit that referenced this pull request Feb 19, 2023
* add initial

* add list response

* add webdav list_response parser

* add more response

* RFR: making PUT more generic

* progress implementatin

* add dir_stream

* make fields public

* finish backend

* finish

* rename to DirStream

* add file header

* fix lint

* update comments

* set_capabilities

* address backend feedbacks

* refine lock & clean up

* fix logic

* fix lint: dir_stream.rs

* trying to fix

* Update src/services/webdav/dir_stream.rs per comment from @ClSlaid

Co-authored-by: ClSlaid <[email protected]>

* dav_ext_methods PROPFIND;

* PROPFIND

* fix formatting

* improve nginx config

* Install nginx full

Signed-off-by: Xuanwo <[email protected]>

* Fix apt install

Signed-off-by: Xuanwo <[email protected]>

* import module

Signed-off-by: Xuanwo <[email protected]>

* fix lint

* nginx

* build relative path

* trying to fix self.root

* add default depth for propfind

* feat: support auth for HttpBackend (#1359)

support auth for HttpBackend

* feat: Add batch delete support (#1357)

* Save work

Signed-off-by: Xuanwo <[email protected]>

* Refactor batch operater

Signed-off-by: Xuanwo <[email protected]>

* Add docs

Signed-off-by: Xuanwo <[email protected]>

* Add behavior test

Signed-off-by: Xuanwo <[email protected]>

* Format code

Signed-off-by: Xuanwo <[email protected]>

* Fix test on fs

Signed-off-by: Xuanwo <[email protected]>

---------

Signed-off-by: Xuanwo <[email protected]>

* docs: clarify about opendal user defined client (#1356)

* docs: clarify opendal user defined client

1. no auto redirection
2. examples for disable it

Signed-off-by: ClSlaid <[email protected]>

* fix: make document test compilable

Signed-off-by: ClSlaid <[email protected]>

---------

Signed-off-by: ClSlaid <[email protected]>

* fix(webhdfs): should prepend http:// scheme (#1354)

* fix(webhdfs): should prepend http:// scheme

Signed-off-by: ClSlaid <[email protected]>

* refact: check scheme existence only on create

Signed-off-by: ClSlaid <[email protected]>

* fmt: make msrv-clippy happy

Signed-off-by: ClSlaid <[email protected]>

---------

Signed-off-by: ClSlaid <[email protected]>

* ci: Pin time <= 0.3.17 until we decide to bump MSRV (#1361)

* ci: Pin time <= 0.3.17 until we decide to bump MSRV

Signed-off-by: Xuanwo <[email protected]>

* Fix build

Signed-off-by: Xuanwo <[email protected]>

---------

Signed-off-by: Xuanwo <[email protected]>

* ci: Only run service test on changing (#1363)

Only run service test on changing

Signed-off-by: Xuanwo <[email protected]>

* add auth for propfind

* fix list op

* fix root path

* add xml header

* fix prop xml

* remove TODO

* skip current path while listing

* handle 404 for dir

* add MKCOL to fix mkdir

* add MKCOL for dirs

* end

* create dir recursively

* handle StatusCode::METHOD_NOT_ALLOWED

* fix iteration

* fix typo

* fix dir creation

* fix write

---------

Signed-off-by: Xuanwo <[email protected]>
Signed-off-by: ClSlaid <[email protected]>
Co-authored-by: ClSlaid <[email protected]>
Co-authored-by: Xuanwo <[email protected]>
Co-authored-by: Young-Flash <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants