AADSTS7000215: Invalid client secret provided

STRATTFORT 0 Reputation points
2024-06-28T23:33:51.6266667+00:00

I got this error setting up ODOO Outlook Connector: An error occurred when fetching the access token. 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 '08520c3e-80a1-48cd-b87a-bf425fd54973'. Trace ID: f38c62c0-6359-422e-8a0e-16bcf7bb8e00 Correlation ID: 96c639cb-eecf-4178-b6ab-67fc74d56749 Timestamp: 2024-06-28 23:26:05Z

Secure ID is correct - I tried to regenerate man y times. There is no + or = signs. Still not working - please help ?

Microsoft Entra
Microsoft Entra
A group of Microsoft multicloud identity and access solutions.
2,582 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
25,071 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Andriy Bilous 11,821 Reputation points MVP Volunteer Moderator
    2024-06-30T08:57:13.41+00:00

    Hello STRATTFORT

    The "invalid client secret" error typically occurs if the secret is invalid, expired, or has a special character in it.

    There are couple of solutions:

    Client Secret Format:

    Check Encoding:

    • Avoid encoding the secret; provide it as-is. Encoding might cause issues, especially if there are special characters involved.

    Plus Sign Issue:

    0 comments No comments

  2. CandidRoot 0 Reputation points
    2024-11-12T11:46:30.1766667+00:00

    This kind off AADSTS7000215: Invalid client secret provided error will come due to incorrect configuration in Odoo Outlook configuration,

    You can follow below steps.

    1. Incorrect Client Secret:

    Check the Client Secret from your Azure AD application.

    If you are unsure about Client Secret then you can Regenerate in your Azure AD application and update it in Odoo.

    2. Permissions In Azure AD Application :

    First Verify permissions: Permissions like "Mail.Read" and "Mail.ReadWrite".

    If your account is multi-tenant application then Grant admin consent to the application

    3. Odoo Configuration:

    Make sure that you have entered Correct client ID and secret in the Odoo Outlook Connector settings.

    Ensure the Redirect URL in Azure AD is same configured in Odoo.

    Click on Test connection to verify the configuration.

    4. Azure AD Tenant Restrictions:

    Please check if any Conditional Access Policies Or blocking access in your application

    Make sure that IP address of your Odoo Server is allowed access the Azure AD tenant.

    Other Additional Tips:

    Sometime Clearing browser cache and cookies can resolve authentication issues.

    Sometimes browser extensions can be also block the authentication processes.

    You can check Azure AD logs to get information about the error.

    Refer documentation of Azure AD And Odoo to troubleshooting Azure AD authentication issues.

    0 comments No comments

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.