box / box/box-java-sdk

Need to support non basic-auth proxies

未关闭
#658 3 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
enhancement
主要语言
Java
星标
170
派生
189
平均合并
20 小时 26 分钟
30 天内合并 PR
22

描述

- [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

贡献指南

打开贡献指南

调研方向

未指定实现文件或测试;首先跟踪 Java SDK 如何配置其代理和 HTTP 客户端,并以 issue 中提到的 Apache HTTPClient auth schema registry 和 credentials provider 作为参考。使用 Kerberos/SPNEGO 代理和 GET https://api.box.com/2.0/search?query=sales 进行复现;当 Box 凭据缺失时,SDK 接受可配置的代理身份验证并成功访问 Box,返回 401 而不是 407,即表示完成。

由索引模型根据 Issue 内容生成。

评估

技术栈
java
领域
networking
Issue 类型
功能
难度
5/5
预计耗时
一周以上
活跃度
停滞
描述清晰度
基本清楚
新手友好度
25/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。