Hi!
I am working at the moment to get the token using POST login.microsoftonline.com:443/{tenantID}/oauth2/v2.0/token.
I am able to create a client_assertion, but I am getting this error with the API call:
{ "error": "invalid_client", "error_description": "AADSTS700027: The certificate with identifier used to sign the client assertion is not registered on application. [Reason - The key was not found., Please visit the Azure Portal, Graph Explorer or directly use MS Graph to see configured keys for app Id '8b76b6d9-4732-4558-a4b5-40d5ff2ed6ef'. Review the documentation at https://docs.microsoft.com/en-us/graph/deployments to determine the corresponding service endpoint and https://docs.microsoft.com/en-us/graph/api/application-get?view=graph-rest-1.0&tabs=http to build a query request URL, such as '[https://graph.microsoft.com/beta/applications/8b76b6d9-4732-4558-a4b5-40d5ff2ed6ef']]. Trace ID: 40dccc8c-276d-4927-b6e0-583bf24f9000 Correlation ID: 55f49a48-adab-4470-b42d-f100f63bc15d Timestamp: 2026-06-09 14:01:21Z", "error_codes": [ 700027 ], "timestamp": "2026-06-09 14:01:21Z", "trace_id": "40dccc8c-276d-4927-b6e0-583bf24f9000", "correlation_id": "55f49a48-adab-4470-b42d-f100f63bc15d", "error_uri": "https://login.microsoftonline.com/error?code=700027" }
The thumbprint is correct, because otherwise I get a similar error but with the line "Thumbprint of key used by client" in the error as well. The certificate is still valid, and is available in the app registration.