msgraph-sdk-java-auth icon indicating copy to clipboard operation
msgraph-sdk-java-auth copied to clipboard

How to support Client Credential mode with certificate ?

Open kokmike opened this issue 5 years ago • 2 comments

Hello,

The current clientCredentialProvider need a clientSecret to builder the oauth2 request. But it exists another way to use certificate instead of clientSecret which is recommended by Microsoft.
Is there some possible solution for certificate ?

Thanks. AB#7117

kokmike avatar Jun 15 '20 03:06 kokmike

We'll add support for this when we add the MSAL Java dependency.

MIchaelMainer avatar Jun 18 '20 20:06 MIchaelMainer

Hi @kokmike
Thanks for reaching out and for the patience. With the release of the v3 of the java SDK, it now integrates with Azure Identity which supports a wide variety of authentication flows out of the box. We strongly encourage you to migrate to this v3 + azure identity, and you can read more about it in this issue. https://github.com/microsoftgraph/msgraph-sdk-java/issues/628

This issue won't be fixed, but I'll leave it open for visibility, and the repository will be archived soon.

baywet avatar Mar 16 '21 12:03 baywet