Skip to Content
Odoo Menu
  • Sign in
  • Try it free
  • Apps
    Finance
    • Accounting
    • Invoicing
    • Expenses
    • Spreadsheet (BI)
    • Documents
    • Sign
    Sales
    • CRM
    • Sales
    • POS Shop
    • POS Restaurant
    • Subscriptions
    • Rental
    Websites
    • Website Builder
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Supply Chain
    • Inventory
    • Manufacturing
    • PLM
    • Purchase
    • Maintenance
    • Quality
    Human Resources
    • Employees
    • Recruitment
    • Time Off
    • Appraisals
    • Referrals
    • Fleet
    Marketing
    • Social Marketing
    • Email Marketing
    • SMS Marketing
    • Events
    • Marketing Automation
    • Surveys
    Services
    • Project
    • Timesheets
    • Field Service
    • Helpdesk
    • Planning
    • Appointments
    Productivity
    • Discuss
    • Approvals
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Industries
    Retail
    • Book Store
    • Clothing Store
    • Furniture Store
    • Grocery Store
    • Hardware Store
    • Toy Store
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Beverage Distributor
    • Hotel
    Real Estate
    • Real Estate Agency
    • Architecture Firm
    • Construction
    • Estate Management
    • Gardening
    • Property Owner Association
    Consulting
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Manufacturing
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware & Support
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Others
    • Nonprofit Organization
    • Environmental Agency
    • Billboard Rental
    • Photography
    • Bike Leasing
    • Software Reseller
    Browse all Industries
  • Community
    Learn
    • Tutorials
    • Documentation
    • Certifications
    • Training
    • Blog
    • Podcast
    Empower Education
    • Education Program
    • Scale Up! Business Game
    • Visit Odoo
    Get the Software
    • Download
    • Compare Editions
    • Releases
    Collaborate
    • Github
    • Forum
    • Events
    • Translations
    • Become a Partner
    • Services for Partners
    • Register your Accounting Firm
    Get Services
    • Find a Partner
    • Find an Accountant
    • Meet an advisor
    • Implementation Services
    • Customer References
    • Support
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Get a demo
  • Pricing
  • Help

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • CRM
  • e-Commerce
  • Accounting
  • Inventory
  • PoS
  • Project
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Tags (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Tags (View all)
odoo accounting v14 pos v15
About this forum
Help

Login on Odoo 16 using MS Azure with MFA

Subscribe

Get notified when there's activity on this post

This question has been flagged
loginoauth2Azureodoo16
1913 Views
Avatar
Tom Nugter

Looking for help using MS Azure as out identity provider with MFA logging into Odoo.

 We’re using odoo 16 and we looking for a safe, foolproof way for our internal users to login. Minimal requirement is to have some form us MFA (multi factor authentication) or 2FA (Two Factor authentication).

 

Since I’m learning Scrum, let’s write that out in user stories:

 -As an internal user I want to be able to log in without as little hassle as possible, so I can quickly begin with my work

 -As a system administrator  I want my users to log in with something more secure that just a password, so I can ensure the safety of the system

 -As a system administrator  I do not want my users to be able to by pass security measures, so I can ensure the safety of the system.

 -As a system administrator I want my users to be able to set up their own login and/or safely measures, so I will not be the bottle neck for their onboarding

 With these user stories, we begun to check what would be possible. Odoo 16 has a 2FA authentication system build in, but this turns out to be insufficient. We realized this functionally has two major flaws for our use case:

-Users would be challenged for a 2FA at every login attempt. We quickly realized that this would be highly annoying for people. Most likely it would be counterproductive, because using this functionality would encourage people to NOT log out when leaving.

-Users would be able to TURN OFF 2FA themselves in their profile and it would be a pain for our administrators to keep track of users that turned it off.

 Realizing this we started searching for an alternative. Since we used the Microsoft Suite already, using MS Workspace (now MS Entra) as our Identity Provider would be a great option. Users would be able to log in with their MS password. We would also be able to use Conditional Access [1] to set policies so that MFA challenges would be limited to a minimum.

Odoo already provided decent documentation for setting up a connection between Odoo and MS Azure using OAuth. [2] The documentation seems to be solid, and we where able to set up a system where users where able to log on in Odoo using their MS credentials.

 Next step would be to create an new Conditional Access Policy in MS Azure. Our system administrator created one, tested if it worked an a MS default app and then applied the policy to the Odoo App in MS Azure.

 Unfortunately, somehow, the policy was not respected. Even though we made the policy really tight, users where not prompted to MFA. When testing the same policy on a MS default app, the users would be prompted, so we suspect a setting on the Odoo App in MS Azure.

 We suspect that issue lies in this setting:

 


IN the setup described by Odoo, the setting ’access tokens (used for implicit flow) is mandatory. I suspect that this setting forced an implicit flow, which means that our MFA policy is ignored. Unfortually, if we turn this off, out setup doesn't work anymore.

Am I correct in my assumption that this setting is preventing out users from being promoted with MFA? And if so, would somebody be able to help me out with setting up a system where we can login with OAuth in Odoo using MS Azure with Conditinal Access?

 

Help is very much appreciated


[1] https://www.odoo.com/documentation/16.0/applications/general/users/azure.html

0
Avatar
Discard
Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Sign up
Related Posts Replies Views Activity
Azure oauth issue
oauth2 Azure
Avatar
Avatar
Avatar
2
Aug 25
4351
Why can't Odoo correctly redirect to the initial access path after successful authentication by the OAuth provider, ?
login oauth2
Avatar
0
May 24
2819
How to Facebook login in Odoo
login facebook oauth2
Avatar
Avatar
Avatar
2
May 25
18730
Facebook Login
login facebook oauth2
Avatar
Avatar
Avatar
4
Jul 17
9566
Odoo OAuth Error 3 Solved
oauth login openid oauth2
Avatar
Avatar
2
Jan 24
9657
Community
  • Tutorials
  • Documentation
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Translations
Services
  • Odoo.sh Hosting
  • Support
  • Upgrade
  • Custom Developments
  • Education
  • Find an Accountant
  • Find a Partner
  • Become a Partner
About us
  • Our company
  • Brand Assets
  • Contact us
  • Jobs
  • Events
  • Podcast
  • Blog
  • Customers
  • Legal • Privacy
  • Security
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

Odoo is a suite of open source business apps that cover all your company needs: CRM, eCommerce, accounting, inventory, point of sale, project management, etc.

Odoo's unique value proposition is to be at the same time very easy to use and fully integrated.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now