FAQ
Which Odoo editions and hosting? Odoo 13.0 to 20.0, Community and Enterprise, on Odoo.sh or your own server. Odoo Online does not allow custom apps.
Does it work next to Google or Odoo.com sign-in? Yes. It builds on Odoo's OAuth module, so other providers keep working.
Is Microsoft multi-factor authentication used? Yes. Microsoft applies your MFA and Conditional Access rules during the sign-in.
Why the code flow with PKCE? Some Microsoft login apps use the implicit flow, where Odoo accepts any Microsoft access token. A token issued to another app could then open a session. This app uses the authorization code flow with PKCE and checks the signed ID token, and closes the implicit flow for its Microsoft tenants.
The button does nothing or Microsoft says the redirect URI does not match (AADSTS50011).
Register exactly the Redirect URI shown in Odoo, platform Web, and check web.base.url.
Microsoft says the client secret is invalid (AADSTS7000215). Paste the secret Value, not the Secret ID.
A user gets "No Odoo user is linked to your Microsoft account". The user's Odoo login or email must match the Microsoft address, or turn on user creation.
Can personal Microsoft accounts sign in?
Only with the tenant common. With organizations or a tenant ID they are refused.
Where are the access tokens? Nowhere: the app keeps only the Microsoft object ID, tenant ID and account name on the user.
How do I remove the app? Uninstall Pro first, then the free app, in Apps. Users keep their passwords and can sign in with them.
Do I need anything extra on Odoo 13.0 or 14.0?
Yes, the cryptography Python library, which Odoo 15.0 and later already ship. Install it with pip install cryptography before installing the app. On Odoo.sh, add cryptography to the requirements.txt of your repository.