Curious_Soul
Curious_Soul

Reputation: 21

How to connect azure Ad with java web application using certificate?

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

Answers (1)

AlfredoRevilla-MSFT
AlfredoRevilla-MSFT

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

Related Questions