| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
Discuss (mail)
|
| Lines of code | 30 |
| Technical Name |
azure_select_account |
| License | AGPL-3 |
| Website | https://www.gocn.com.br |
| Versions | 18.0 19.0 |
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
Discuss (mail)
|
| Lines of code | 30 |
| Technical Name |
azure_select_account |
| License | AGPL-3 |
| Website | https://www.gocn.com.br |
| Versions | 18.0 19.0 |
Azure SSO: Force Account Selection
Stop the Auto-Login Loop on Odoo 18+
The Problem
By default, Odoo's Azure OAuth implementation remembers the last logged-in Microsoft account. While this is convenient for single users, it creates a frustrating loop for users who manage multiple accounts (e.g., Consultants, Developers, or users with both Personal and Work accounts).
Once logged in, it becomes difficult to switch accounts without clearing browser cookies or opening an Incognito window.
The Solution
This module injects the standard OAuth2 parameter prompt='select_account' into the Azure authentication request.
Result: Microsoft will always present the account selection screen, giving the user full control over which identity to use for that session.
Key Features
Total Control
Never get stuck in the wrong account again. Forces the chooser UI every time.
Zero Configuration
Plug & Play. Install the module, and it works instantly for all Azure OAuth providers.
Standard Compliant
Uses official Microsoft Entra ID (Azure AD) URL parameters. Safe and secure.
FAQ
No. The code specifically checks for login.microsoftonline.com endpoints before applying the parameter.
Not necessarily. If their session is active with Microsoft, they just click their name. They only need to type the password if the Microsoft session itself has expired.
Developed with by Go On Associated
Please log in to comment on this module