Invalid client secret provided.

SohamPrasad Girde (Wipro Designit Services, Inc.) 40 Reputation points Microsoft Vendor
2024-03-25T04:28:08.9766667+00:00

Hi ,

     While running the the web app im facing an error   

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-xxxx-xxxxx-xxxx-xxxx.

Can you please help to resolve

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,025 questions
{count} votes

Accepted answer
  1. SnehaAgrawal-MSFT 21,926 Reputation points
    2024-03-26T08:01:56.2+00:00

    @SohamPrasad Girde (Wipro Designit Services, Inc.) Thanks for reaching here! To elaborate here-

    The error message "Invalid client secret provided. Ensure the secret being sent in the request is the client secret value, not the client secret ID"

    typically occurs when the client secret value that you are using to authenticate your application is incorrect.

    To resolve this issue, you should verify that you are using the correct client secret value. Here are some steps you can follow:

    1. Go to the Azure portal and navigate to your application registration.
    2. Click on the "Certificates & secrets" tab.
    3. Make sure that you are using the correct client secret value. If you are not sure, you can create a new client secret by clicking on the "New client secret" button.
    4. Copy the client secret value and use it to authenticate your application.

    If you are still experiencing issues after verifying the client secret value, you may want to check that your application registration has the correct permissions and that your authentication code is correctly configured to use the client secret.

    I hope this helps! Let me know if you have any further questions.

    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.