Hi @jeremy woo , the key you are using has both x5t and x5c values, but they do not match.
Based on the error message, it seems like you are still using the input/request for scenario 2 - obtaining access token via certificate. However, you should be using the input/request for scenario 3 - obtaining access token via client assertion.
To resolve this issue, you may want to double-check your request and ensure that you are using the correct input/request for scenario 3. You may also want to check if the x5t value is the Base64Url-encoded SHA-1 thumbprint of the first certificate in x5c.
Here is an example of a request for scenario 3 that you can refer to:
POST /{tenant}/oauth2/v2.0/token HTTP/1.1
Host: login.microsoftonline.com
Content-Type: application/x-www-form-urlencoded
grant_type=client_credentials
&client_id=6731de76-14a6-49ae-97bc-6eba6914391e
&client_secret=JqQX2PNo9bpM0uEihUPzyrh
&client_assertion_type=urn:ietf:params:oauth:client-assertion-type:jwt-bearer
&client_assertion=eyJhbGciOiJSUzI1NiIsIng1dCI6Imd6RXpYT2N5c0hZd0ZfZV9w...
&scope=https://graph.microsoft.com/.default
Please let me know if you have any questions and I can help you further.
If this answer helps you please mark "Accept Answer" so other users can reference it.
Thank you,
James