Se ha registrado una aplicación, se ha dado los permisos de API, se ha creado secreto de cliente, donde primero al redireccionar al wordpress admin aparece ANTIFORGERY_ID mismatch. Expecting; luego doy click para logear con la cuenta autorizada empresarial oauth2 y me sale el siguiente error: ERROR: Could not get an access token to Microsoft Graph. 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 'xxxxxxxxx'. Trace ID: xxxxxxxxxx Correlation ID: xxxxxxxxx Timestamp: 2024-04-22 11:51:21Z; el id de cliente secreto fue creado normalmente para 180 días. Agradezco su valiosa respuesta.
How do I mitigate "AADSTS7000215: Invalid client secret is provided" ?
Hi,
I'm trying to obtain token on:
login.microsoftonline.com/common/oauth2/v2.0/token
I'm receive the error:
AADSTS7000215: Invalid client secret is provided
I am sure that client_secret is correct and not expired. Also, I encoded the client_secret to make sure special characters are properly passed.
I have used a new secret value as well but still getting the same error.
What can be the reason for such an error? And how do I resolve it ?
Request body:
POST /common/oauth2/v2.0/token
Host: login.microsoftonline.comContent-Type: application/x-www-form-urlencoded
client_id=