Microsoft Azure AD "Error AADSTS7000215: Invalid client secret provided"

Overview

The Client creates an Enterprise Connection with Microsoft Azure AD and gets the following Error when the users try to log through the connection:

{“error”:“invalid_client”,“error_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…}

Applies To

  • Microsoft Azure AD
  • Enterprise Connection
  • Error AADSTS7000215

Cause

An incorrect client secret was used.

Solution

The AADSTS7000215 error indicates the client’s secret is incorrect. A common cause is using the client secret id instead of client secret value.

Make sure to use the client secret value as displayed in the screenshot below: