adobe / adobe/aio-lib-java-cloudmanager

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

未关闭
#41 2 条评论 0 个 reaction 已指派 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 摘要。