adobe / adobe/aio-lib-java-cloudmanager

How to use a proxy to access ims-na1.adobelogin.com ?

Abierto
#41 2 comentarios 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
Java
Estrellas
4
Forks
8
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

Hi!

I need to use the aio-lib-java-cloudmanager on a host where you would need a proxy to access the cloud manager api at `ims-na1.adobelogin.com` . How can I do this? Unfortunately, setting the system properties -Dhttp.proxyHost=proxy.stw.intra -Dhttp.proxyPort=8080 doesn't seem to do anything there. Is there another way to set a proxy?

Thank you so much, and thanks for this nicely done library!

Best regards,
Hans-Peter

#### Platform and Version

aio-lib-cloudmanager version 1.0.0 running on OpenJDK 1.8.0_265-b01 on Linux

#### Sample Code that illustrates the problem

AdobeClientCredentials credentials = new AdobeClientCredentials(orgId, technicalAccountId, clientIdApiKey, clientSecret, privateKey);
IdentityManagementApi imApi = IdentityManagementApi.create();
String token = imApi.authenticate(credentials);

should *not* work when running it if you set an invalid proxy, -Dhttp.proxyHost=nowhere.neverland -Dhttp.proxyPort=8080 , or whatever way is appropriate to set a proxy. Conversely, if you set a proxy, it should be used. But perhaps there is another, right, way to set a proxy.

Guía de contribución

Abrir la guía de contribución

Línea de trabajo

Comienza en IdentityManagementApi.authenticate(credentials) y en la configuración HTTP de Java utilizada para acceder a ims-na1.adobelogin.com. Comprueba cómo se gestionan las propiedades -Dhttp.proxyHost y -Dhttp.proxyPort, y luego verifica que un proxy no válido impide la autenticación y que se utiliza un proxy configurado.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
java
Área
api, networking
Tipo de issue
Error
Dificultad
4/5
Tiempo estimado
3-5 días
Estado de actividad
Estancado
Claridad
Bastante claro
Aptitud para principiantes
30/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.