Need to support non basic-auth proxies
- Langage dominant
- Java
- Étoiles
- 170
- Forks
- 189
- Merge moyen
- 20 h 26 min
- PR mergées (30 j)
- 22
Description
- [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
Guide de contribution
Ouvrir le guide de contribution
Piste de recherche
Aucun fichier d’implémentation ni test n’est nommé ; commencez par retracer la manière dont le Java SDK configure son proxy et son client HTTP, en prenant comme référence l’auth schema registry et le credentials provider d’Apache HTTPClient mentionnés dans l’issue. Reproduisez le problème avec un proxy Kerberos/SPNEGO et GET https://api.box.com/2.0/search?query=sales ; le travail est terminé lorsque le SDK accepte une authentification de proxy configurable et atteint Box, en renvoyant 401 au lieu de 407 lorsque les identifiants Box sont absents.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- java
- Domaine
- networking
- Type d'issue
- Fonctionnalité
- Difficulté
- 5/5
- Temps estimé
- Plus d'une semaine
- Activité
- À l'abandon
- Clarté
- Plutôt claire
- Accessibilité débutants
- 25/100