adobe / adobe/aio-lib-java-cloudmanager

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

Offen
#41 2 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
Java
Sterne
4
Forks
8
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

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.

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

Start at IdentityManagementApi.authenticate(credentials) and the Java HTTP configuration used for access to ims-na1.adobelogin.com. Check how the -Dhttp.proxyHost and -Dhttp.proxyPort properties are handled, then verify that an invalid proxy prevents authentication and a configured proxy is used.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
java
Bereich
api, networking
Issue-Typ
Bug
Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
30/100

Neue Issues direkt in Ihr Postfach

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