0

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.

Moin MD
  • 3
  • 2

1 Answers1

0

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.

RahulKumarShaw
  • 4,192
  • 2
  • 5
  • 11
  • 1
    I was looking to generate the token using cert and this solves the purpose. Earlier had issue with the cmdlets as i had saw specific limitations. I got the workaround was able to test it out yesterday and it worked. Thanks much Rahul.. – Moin MD Mar 03 '22 at 05:13