Need to support non basic-auth proxies
- Ngôn ngữ chính
- Java
- Star
- 170
- Fork
- 189
- Merge trung bình
- 20 giờ 26 phút
- Pull request đã merge (30 ngày)
- 22
Mô tả
- [x] I have checked that the [SDK documentation][sdk-docs] and [API documentation][api-docs] doesn't solve my issue
### Description of the Issue
The current version of the Box API assumes that the proxy is either unauthenticated or using basic username/password authentication. This breaks in any environment that uses different types of authentication, such as NTLM or Kerberos.
In our case when we try to use our proxy we get a 407 HTTP response.
Ideally the Box API should allow us to substitute in our own proxy configuration. Maybe something based on the Apache HTTPClient which allows using an auth schema registry, along with a credentials provider - this works for us in a standalone test, when not using the Box Java API.
### Versions Used
Java SDK: 1.80_181 on RedHat Linux.
Java: 1.80_181 on RedHat Linux.
### Steps to Reproduce
- Proxy that uses Kerberos and SPNEGO
- Set this to be the proxy used by Box
- Connect to https://api.box.com/2.0/search?query=sales via GET
### Error Message, Including Stack Trace
Status 407 returned by proxy. If everything worked we should get a 401 (since we aren't providing Box auth for this test case).
[sdk-docs]: ./doc
[api-docs]: https://developer.box.com/docs
Hướng dẫn đóng góp
Hướng nghiên cứu
Không có tệp triển khai hoặc bài kiểm thử nào được nêu; hãy bắt đầu bằng cách lần theo cách Java SDK cấu hình proxy và HTTP client của mình, sử dụng auth schema registry và credentials provider của Apache HTTPClient được đề cập trong issue làm tài liệu tham chiếu. Tái hiện bằng một proxy Kerberos/SPNEGO và GET https://api.box.com/2.0/search?query=sales; hoàn tất khi SDK chấp nhận xác thực proxy có thể cấu hình và truy cập được Box, trả về 401 thay vì 407 khi thiếu thông tin xác thực Box.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- java
- Lĩnh vực
- networking
- Loại issue
- Tính năng
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 25/100