This module allows to define a list of allowed_domains on 'auth.oauth.provider' and shows only the relevant ones matching with the current domain
auto_awesome What this module does
AI-generated from the code · Odoo 18.0Lets you restrict each OAuth login provider to specific web domains, so only the providers that match the domain the user is visiting are shown on the login page.
This module adds a new field called allowed domains to each OAuth provider record. You fill it in with a comma-separated list of web addresses (for example, the domains your company uses).
When a user opens the OAuth login page, Odoo checks the domain of the website they are visiting and only displays the providers whose allowed domains list contains that domain. Providers with an empty allowed domains field are always shown, so leaving it blank keeps the previous behaviour.
The new field appears on the OAuth provider form, right after the data endpoint field, in the same screen where providers are configured. No new menus are added.
The module touches the auth.oauth.provider model and the OAuth login controller. It does not add any scheduled jobs, emails or reports.
Depends on
Models and fields (1)
- auth.oauth.provider · extends an existing modelallowed_domains
Text generated by AI (DeepSeek) from reading the Odoo 18.0 code on GitHub; it may contain mistakes, so check the code before deciding. View the code on GitHub
Availability by version
Reviewed: 2026-11-03Confirmation status: 2 confirmed, 7 with no information of 9 versions.
Sources · Odoo 18.0
Confirmed on 2026-11-03 in branch 18.0 of OCA/server-auth.
terminal Installation and usage
OCA documentation · Odoo 18.0Usage
Source · Odoo 18.0- Go to Settings > Users and Companies > OAuth Providers.
- Add a comma-separated list of domains in the Allowed Domains field.
- Navigate to
/web/login. - Only providers with
Allowed Domainsmatching the current domain will be displayed. - If
Allowed Domainsis left empty, the provider will be visible on all domains.
No verified information in OCA: Installation, Configuration.
Installation instructions, the distribution package, dependencies and configuration steps are not shown because they have not yet been verified in the module documentation for any version.
Data imported from GitHub: this sheet reflects the latest catalog review, not a live lookup. Always check the module documentation and staging before installing in production.