Toggle navigation

Auth Oauth Autologin

Beta License: AGPL-3 OCA/server-auth Translate me on Weblate Try me on Runboat

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.

Table of contents

Configuration

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.

Usage

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.

Bug Tracker

Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us to smash it by providing a detailed and welcomed feedback.

Do not contact contributors directly about support or help with technical issues.

Credits

Authors

  • ACSONE SA/NV

Maintainers

This module is maintained by the OCA.

Odoo Community Association

OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.

Current maintainer:

sbidoul

This module is part of the OCA/server-auth project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.