# Entra AADSTS7000215: invalid client secret

For an OIDC connection, OhAuthCat exchanged the code with Entra using the client secret entered in the portal, and Entra rejected that secret. It is wrong, was copied as the secret ID instead of its value, or has expired.

## What to change

- **IT admin:** in the app registration, create a new client secret under _Certificates & secrets_ and copy its **value** (shown once), not the secret ID.
- **IT admin:** paste the new value into the connection in the setup portal and run a test sign-in.
- **IT admin:** note the new secret's expiry date and rotate it before then.

## Related OhAuthCat error

- [`oidc_token_exchange_failed`](/errors/oidc_token_exchange_failed/)

## Source

Written in our own words from the public Microsoft Entra ID documentation: [https://learn.microsoft.com/en-us/entra/identity-platform/reference-error-codes](https://learn.microsoft.com/en-us/entra/identity-platform/reference-error-codes). Check it for the vendor's current wording; vendors change their pages without notice.
