support Click to see our new support page.
support For sales enquiry!

How to Integrate Microsoft Azure SSO with Odoo

How to Integrate Microsoft Azure SSO with Odoo - Image

ArchanaJuly 18, 2025

Microsoft Azure OAuth sign-in authentication enables Odoo users to log in using their Microsoft Azure credentials, streamlining access for organizations using Azure Active Directory (Azure AD). This integration enhances security, reduces credential management, and supports single sign-on (SSO) within the Microsoft 365 ecosystem.

Configuration in Odoo

To enable Microsoft Azure OAuth in Odoo, configure the necessary system parameters and OAuth provider settings.

Step 1: Activate Developer Mode and Configure System Parameters

To configure Odoo for Microsoft Azure OAuth, enable Developer Mode, then go to Settings > Technical > System Parameters

 

 

Click Create to open a new parameter form, enter `auth_oauth.authorization_header` in the Key field and `1` in the Value field, and click Save to ensure Odoo uses the correct authorization header for Microsoft Azure's authentication flow.

 

Step 2: Configuration in Microsoft Azure

Create a new application within Microsoft Azure in order to support OAuth authentication.

1: Register a New Application

 

Go to the Microsoft Azure Portal and sign in using an Office 365 organizational account (or a personal Microsoft account if one is not available).

 

Choose Manage Microsoft Entra ID (previously Azure Active Directory) from the Azure dashboard.

 

 

Press the + Add button and select App registration.

 

 

On the application registration page:

  • Enter a name, e.g., "Odoo OAuth Sign-In".
     
  • Under Supported account types, choose Accounts in this organizational directory only (Default Directory only - Single tenant).
     
  • In the Redirect URI section, choose Web as the platform and enter your Odoo instance’s callback URL: https://<your-odoo-domain>/auth_oauth/signin (e.g., https://mydatabase.odoo.com/auth_oauth/signin for Odoo.com-hosted instances).

 

Click Register to create the application.

 

2: Configure Authentication

 

From the application settings, choose the Authentication menu item.

Scroll to the token issuance section and check:

  • Access tokens (used for implicit flows)
  • ID tokens (used for implicit and hybrid flows)

 

 

Click Save to store the authentication settings.

 

3: Gather Credentials

 

Select the Overview menu item from the application's settings.

Copy the Application (client) ID and paste it into a notepad or clipboard.

 

 

Click Endpoints in the top menu.

Copy the OAuth 2.0 authorization endpoint (v2) by clicking the copy icon and paste it into your notepad or clipboard.

 

 

Step 3: Configure OAuth Provider in Odoo

 

Go to Settings > Integrations > OAuth Authentication.

Select the checkbox to activate the OAuth login option and save.

 

 

 Sign in to the database when prompted.

Navigate back to Settings > Integrations > OAuth Authentication and click OAuth Providers.

 

 

Click New in the top-left corner and title the provider "Azure".

Paste the Application (client) ID (which is gathered from Azure) into the Client ID field.

Paste the OAuth 2.0 authorization endpoint (v2) (obtained from Azure) into the Authorization URL field.

In the UserInfo URL field, enter: https://graph.microsoft.com/oidc/userinfo

In the Scope field, enter: openid profile email

In the CSS class field, enter: fa fa-fw fa-windows to display the Windows logo.

Check the Allowed box to enable the provider.

In the Login button label field, enter: Log in with Microsoft Azure for the login page display.

 

 

Click Save to apply the settings.

User Experience Flows

Users will have to use the Odoo password reset page to associate their Microsoft Azure account for login.

Steps to Sign In Using Microsoft Azure OAuth

To sign in to Odoo using Microsoft Azure, go to the Odoo password reset page through the new user invitation link (for new users) or by starting a password reset (for existing users). Select the Microsoft Azure option. 

 

 

This will direct to the Microsoft login page. 

 

 

Enter the Microsoft email, click Next, and complete the login process, including any two-factor authentication (2FA) steps if enabled. Then, on the permissions page, click Accept to allow Odoo to access the Microsoft account information.

This completes the setup and login process for Microsoft Azure OAuth integration with Odoo.

0

Leave a Comment

Subscribe to our Newsletter

Sign up to receive more information about our latest offers & new product announcement and more.