Reputation: 21
I have to connect azure ad to my java web application with certificate and without client Secret. any idea how to do this.
Really appreciate the replies .
Upvotes: 0
Views: 1120
Reputation: 3495
Take a look to the If you have a certificate section in Instantiating a Confidential Client application:
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();
Also, to Client Credentials with certificate.
Upvotes: 1