Skip to main content

Automatically redirect to the OAuth provider for login

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file odoo14_addon_auth_oauth_autologin-14.0.1.0.2.dev2-py3-none-any.whl.

File metadata

File hashes

Hashes for odoo14_addon_auth_oauth_autologin-14.0.1.0.2.dev2-py3-none-any.whl
Algorithm Hash digest
SHA256 7bd366c33bfb8db0f755a002566b72330ec0d404a6b825304f1fade5b9e7753e
MD5 c12a89718d33bf4dd0c3d598ca32321c
BLAKE2b-256 b40e2124c6e723b09dc5199d7c2a3fcb1f476fa04b1940cd758b1b03724f2829

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page