How to check if Microsoft Azure App registration is valid and there are no more rights needed?
I m attempting to use the client credentials flow of the OAuth 2.0 protocol to authenticate with the Microsoft Graph API and retrieve emails.
Ive followed the necessary steps, including generating a JWT using a private key and attempting to obtain an access token from Azure AD
However when I try to get the toke, I receive the error
'InvalidAuthenticationToken' with the Message "CompactToken parsing failed with the error code :80049217.
I have ensured that my tenant id, client id and scope are correctly set according to my Azure Ad app registration. Additionally I have uploaded the public certificate (associated with the private key used for signing the JWT)to the app registration in Azure AD
Could you help me understand what might be causind this error and how I can resolve it?