Invalid Client secret provided error

Robert Kahler 21 Reputation points
2024-10-15T21:07:01.63+00:00

Hi,

We had an App using Azure API Permissions involving Client Secrets which worked fine until the assigned time span ended. The client secret was updated; however, the app is not connecting completely with our Lansweeper setup.

Lansweeper shows incoming Status as good. Outgoing Status doesn't work and has a message "Incoming mail error: Processing client & authentication token error."

The error log for Lansweeper states "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." The error points to a Microsoft page which states the same information concerning error code 7000215.

I assume that the client secret value needs to be updated but have no idea how to do it. I've spent the day attempting to walk through the steps I've found on Microsoft and other sites, but they walk through going to the controls in Azure but don't quite explain the part about updating and applying the client secret even though I know how to create a new one.

I've never done this before. I'm alone for several days and could really use some advice or instruction.

I hope I've stated this well. I am unaccustomed to using any tools outside of user creation and Exchange tasks.

Thank you.

Azure API Management
Azure API Management
An Azure service that provides a hybrid, multi-cloud management platform for APIs.
2,455 questions
Microsoft Security | Microsoft Entra | Microsoft Entra ID
0 comments No comments
{count} votes

Accepted answer
  1. Bandela Siri Chandana 3,055 Reputation points Microsoft External Staff Moderator
    2024-10-16T05:34:07.32+00:00

    Hi @Robert Kahler

    Thank you for posting your query on Microsoft Q&A.

    I understand you are experiencing issues with your application connecting to Lansweeper after updating the client secret. You got error message AADSTS7000215: Invalid client secret provided indicates that the client secret being used in an authentication request is incorrect.

    To fix this issue make sure to use client secret value instead of client id. 

    You will get client secret value under client secret section. you can create a new secret, ensure you copy the value of the new secret immediately after creation, as it won't be displayed again.

    Screenshot_16-10-2024_10725_learn.microsoft.com

    Then Update Lansweeper Configuration:

    • Locate the configuration settings for Lansweeper where the Azure app credentials are stored.
    • Replace the old client secret with the new client secret value you copied from Azure.

    Hope this helps. Do let us know if you any further queries.

    Thanks,

    B. Siri Chandana.


    If this answers your query, do click Accept Answer and Yes for was this answer helpful. And, if you have any further query do let us know.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

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.