Connect Microsoft Outlook 365 to Odoo using Azure OAuth

Shahrukh Shahid 5 Reputation points
2025-12-02T11:36:45.3833333+00:00

I have an issue odoo connect to azure with email smtp or imap and also error to connect AADSTS50011: The redirect URI 'http://odoo.inseyab.com/microsoft_outlook/confirm' specified in the request does not match the redirect URIs configured for the application '3496a579-6c36-437e-9ad8-f27d973d7db3'. Make sure the redirect URI sent in the request matches one added to your application in the Azure portal. Navigate to https://aka.ms/redirectUriMismatchError to learn more about how to fix this.

Microsoft Security | Microsoft Entra | Microsoft Entra ID

1 answer

Sort by: Most helpful
  1. AI answer

    2025-12-02T11:38:34.49+00:00

    To address the AADSTS50011 error you are encountering while connecting Odoo to Azure, follow these steps to ensure that the redirect URI is correctly configured:

    1. Verify the Redirect URI: Check that the redirect URI http://odoo.inseyab.com/microsoft_outlook/confirm is the one being sent in your authentication request.
    2. Access Azure Portal: Log in to the Azure portal and navigate to your application settings.
    3. Update Redirect URIs: In the authentication section of your application, confirm that the redirect URI you are using is included in the list. If it is not present, you need to add it.
    4. Add the Redirect URI: If you need to add a new redirect URI, select the appropriate platform for your application (like web or mobile) and enter the URI. Make sure to click Configure to save the changes.
    5. Understand Redirect URI Restrictions: Be mindful of any restrictions regarding the format of redirect URIs. Avoid using wildcard URIs as they can lead to complications.

    Following these steps should help you resolve the redirect URI mismatch issue and successfully connect Odoo to Azure.

    AI-generated content may be incorrect. Read our transparency notes for more information.

    Was this answer helpful?

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.