我必须连接azure广告到我的java web应用程序证书和没有客户端秘密。你知道怎么做吗?
非常感谢您的回复。
看的如果你有一个证书实例化机密客户端应用程序部分:
String PUBLIC_CLIENT_ID;
String AUTHORITY;
PrivateKey PRIVATE_KEY;
X509Certificate PUBLIC_KEY;
IClientCredential credential = ClientCredentialFactory.createFromCertificate(PRIVATE_KEY, PUBLIC_KEY);
ConfidentialClientApplication app =
ConfidentialClientApplication
.builder(PUBLIC_CLIENT_ID, credential)
.authority(AUTHORITY)
.build();
还有,to Client Credentials with certificate.