azure-active-directoryinvoke-restmethod

How do I Authenticate to AAD using Invoke-RestMethod with ClientCredential flow using certfiicate and get the token?


How do I Authenticate to AAD using Invoke-RestMethod with ClientCredential flow using certificate and get the token?

I tried to search for it but no success. I can authenticate with client Secret but I want to use cert for security purposes.


Solution

  • To get Access Token using client credential flow with using certificate.You need to generate a self singed certificate and need to upload in AzureAD application->ertificate&Secret.

    You can refer this Post, Here they have explained in steps how you can generate the access token using the certificate.