box / box/box-java-sdk

Need to support non basic-auth proxies

Offen
#658 3 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
enhancement
Vorherrschende Sprache
Java
Sterne
170
Forks
189
Ø Merge
20 Std. 26 Min.
Gemergte PRs (30 T.)
22

Beschreibung

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

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

No implementation file or test is named; begin by tracing how the Java SDK configures its proxy and HTTP client, using the Apache HTTPClient auth schema registry and credentials provider mentioned in the issue as reference. Reproduce with a Kerberos/SPNEGO proxy and GET https://api.box.com/2.0/search?query=sales; done means the SDK accepts configurable proxy authentication and reaches Box, returning 401 rather than 407 when Box credentials are absent.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
java
Bereich
networking
Issue-Typ
Feature
Schwierigkeit
5/5
Geschätzter Aufwand
Über eine Woche
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
25/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.