adobe / adobe/aio-lib-java-cloudmanager

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

オープン
#41 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Java
スター
4
フォーク
8
PR マージ指標
30日以内にマージされた PR はありません

説明

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.

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

IdentityManagementApi.authenticate(credentials) から始め、ims-na1.adobelogin.com へのアクセスに使用される Java HTTP 設定を確認します。-Dhttp.proxyHost と -Dhttp.proxyPort プロパティがどのように処理されるかを確認し、その後、無効なプロキシによって認証が阻止され、設定されたプロキシが使用されることを検証します。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
java
領域
api, networking
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
30/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。