Experiencing Issues with MSAL Config due to Client Secret Value?

Bryan Lai 0 Reputation points
2025-01-13T16:15:23.13+00:00

Hi All,

I'm reaching out in regards to the error code I've been receiving for my app that doesn't quite make sense as it's been working properly until during and after last Friday's outage.

In my application, I've received the following:

errorCode: 'invalid_client',

errorMessage: "Error(s): 7000215 - Timestamp: 2025-01-13 16:04:34Z - Description: AADSTS7000215: Invalid client secret provided. Ensure the secret being sent in the request is the client secret value, not the client secret ID, for a secret added to app '

Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
22,835 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Bryan Lai 0 Reputation points
    2025-01-13T20:48:14.4033333+00:00

    This has been resolved - when these values are in the .env config with double quotation marks e.g. "<client-value>" instead of <client-value>, it reads it incorrectly.

    I was able to check the tokenResponse and it passed in '"<client-secret>"' for the msalConfig instead of "<client-secret>"

    0 comments No comments

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.