adobe / adobe/aio-lib-java-cloudmanager
How to use a proxy to access ims-na1.adobelogin.com ?
- 主要語言
- 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