Client Secret Error

Maitra-v, Anirban 141 Reputation points
2022-03-21T22:27:44.387+00:00

Hi,

I have followed your guide to the letter and set the app up in our AD tenant. However, when authenticating the account I get this error:

invalid_client AADSTS7000215: Invalid client secret is provided.

I have checked the tenant and app id on the overview page and the client secret also. All three are correct yet I still get this error.

Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
21,904 questions
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Marilee Turscak-MSFT 36,851 Reputation points Microsoft Employee
    2022-03-21T23:41:35.857+00:00

    Hi @Maitra-v, Anirban ,

    I understand that you have listed the correct client secret but are still receiving the following error:

    invalid_client AADSTS7000215: Invalid client secret is provided.  
    

    Here are some things to check when running into this problem:

    1) If you have added the correct client secret and it is still not working, you can try adding a new client secret to see if you still receive the error.

    185377-image.png

    2) Confirm that you are adding the client secret value and not the Secret ID.

    185364-image.png

    3) Make sure the URL is encoded properly, as mentioned here. If the secret has special characters they need to be urlencoded. If you don't encode the URL, one workaround is to regenerate a secret that mostly just has upper and lower case letters.

    4) Check that the expiration time is set to six, 12, or 18 months, as a few users have reported seeing issues setting the expiration time to 24 months.

    Let me know if this helps and if you still face the issue after trying these steps.

    -
    If this answer helps resolve your question, please remember to "mark as answer" so that others in the community with similar issues can more easily find a solution.


  2. Adarsh Kumar 11 Reputation points
    2022-09-07T15:41:24.143+00:00

    Getting the same problem , I have regenerated the Secret value and ID , then also I am getting the same error, url encoding is not working as well , what else can I do ? @Marilee Turscak-MSFT

    0 comments No comments

  3. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

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.