Unable to call Microsoft Graph API with Auth0

G9000 5 Reputation points
2024-10-04T05:25:30.41+00:00

Hi I'm following this document by Auth0
https://auth0.com/docs/authenticate/identity-providers/enterprise-identity-providers/azure-active-directory/v2

to establish a connection between Auth0 and Microsoft Azure Directory. From our understanding, we should be able to query Microsoft Graph API with our Auth0 Token provided that we configure it correctly. I can see that successful login on both Auth0 and Microsoft Application sign-in logs. But currently, we are getting the following error if I were to call graph API:

"code": "InvalidAuthenticationToken",

"message": "Signing key is invalid.",

"innerError": {

  "date": "2024-10-04T04:29:24",

  "request-id": "cb0a6894-3b78-4833-b330-1fa691846255",

  "client-request-id": "cb0a6894-3b78-4833-b330-1fa691846255"

}

スクリーンショット 2024-10-04 131645

スクリーンショット 2024-10-04 132102

スクリーンショット 2024-10-04 131632

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,039 questions
Active Directory
Active Directory
A set of directory-based technologies included in Windows Server.
6,547 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
21,792 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Yakun Huang-MSFT 4,800 Reputation points Microsoft Vendor
    2024-10-04T07:23:11.9133333+00:00

    Hello G9000,

    Thank you for reaching out to Microsoft Support!

    The error message for your key is invalid, please check your client ID, client secret is expired, is correct, as shown below:

    User's image

    Hope this helps.

    If the answer is helpful, please click Accept Answer and kindly upvote it. If you have any further questions about this answer, please click Comment.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.