OdooWiki OCA HUB

Auth Oauth Autologin

auth_oauth_autologin folder_open OCA/server-auth open_in_new
Uncategorised License: AGPL-3

This modules implements an automatic redirection to the configured OAuth provider login page, if there is one and only one enabled. This effectively makes the regular Odoo login screen invisible in normal circumstances.

auto_awesome What this module does

AI-generated from the code · Odoo 17.0

Automatically redirects users to the single enabled OAuth provider's login page, hiding the standard Odoo login screen. Administrators can mark one provider as the automatic login provider.

This module extends the OAuth provider configuration so that administrators can tick an "Automatic Login" checkbox on a provider. When exactly one enabled provider has this option checked, the standard Odoo login page automatically forwards visitors to that provider's login page instead of showing the usual username and password form.

The redirect is skipped when the login URL contains a special parameter that disables automatic login, or when an OAuth error is present, so users can still reach the normal login screen in those cases. The module adds the checkbox to both the form and list views of OAuth providers, and loads a small front-end script that performs the redirect when the login page is opened.

It works together with the OAuth authentication feature and affects the auth.oauth.provider model and the login page behaviour. No new menus are added; the setting appears directly in the existing OAuth provider configuration screens.

Depends on

auth_oauth
Models and fields (1)
  • auth.oauth.provider · extends an existing modelautologin (Automatic Login)

Text generated by AI (DeepSeek) from reading the Odoo 17.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-03
Confirmed (verified in repository and branch) Estimated (unverified) No information

Confirmation status: 5 confirmed, 4 with no information of 9 versions.

Sources · Odoo 13.0

Confirmed on 2026-11-03 in branch 13.0 of OCA/server-auth.

terminal Installation and usage

OCA documentation · Odoo 17.0

Configure OAuth providers in Settings \> Users and Companies, and make sure there is one and only one that has both the enabled and automatic login flags set.

When this is done, users visiting the login page (/web/login), or being redirected to it because they are not authenticated yet, will be redirected to the identity provider login page instead of the regular Odoo login page.

Be aware that this module does not actively prevent users from authenticating with an login and password stored in the Odoo database. In some unusual circumstances (such as identity provider errors), the regular Odoo login may still be displayed. Securely disabling Odoo login and password, if needed, should be the topic of another module.

Also be aware that this has a possibly surprising effect on the logout menu item. When the user logs out of Odoo, a redirect to the login page happens. The login page in turn redirects to the identity provider, which, if the user is already authenticated there, automatically logs the user back in Odoo, in a fresh session.

When configured, the Odoo login page redirects to the OAuth identify provider for authentication and login in Odoo. To access the regular Odoo login page, visit /web/login?no_autologin.

No verified information in OCA: Installation.

info

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.