OdooWiki OCA HUB

Auth Oidc Environment

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

this module allows to use server env for OIDC configuration

auto_awesome What this module does

AI-generated from the code · Odoo 18.0

Lets administrators keep the OIDC/OpenID Connect client ID and client secret in server environment files instead of typing them in Odoo, so authentication settings can be managed outside the database.

This module connects the OAuth/OIDC provider configuration in Odoo with the server environment system. It extends the auth.oauth.provider model so that two sensitive values — the client ID and the client secret — can be read from server-side environment configuration rather than being stored and edited directly in Odoo.

Where it appears: - There are no new menus or screens. The change affects the existing OAuth provider configuration records used by the OIDC login feature.

What it changes: - The client_id and client_secret fields of auth.oauth.provider become server environment fields. When a value is supplied by the server environment, it is used for authentication instead of the value kept in the database. - The module defines a global configuration section named auth_oauth_provider, so all providers share that section for these values.

Business effect: - Secrets for single sign-on can be deployed and rotated through server configuration files, without exposing them in the Odoo database or user interface. - No validation, computation, email, or scheduled action is added by this code; it only changes where the two credential values come from.

It touches the OAuth provider model used by the OIDC authentication flow and relies on the server environment framework.

Models and fields (1)
  • auth.oauth.provider · new model

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-03
Confirmed (verified in repository and branch) Estimated (unverified) No information

Confirmation status: 3 confirmed, 6 with no information of 9 versions.

Sources · Odoo 16.0

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

terminal Installation and usage

OCA documentation · Odoo 18.0

To configure this module, you need to:

Create a module server_environment_file with a cfg file or set the environment variable SERVER_ENV_CONFIG with the following section:

[auth_oauth_provider.\]

Where \ is optional and must be equal to the name field you defined in Odoo for the IDP.

Example of configuration

[auth_oauth_provider.azure]

client_id=... client_secret=...

Once configured, Odoo will read the Auth Providers values from the configuration.

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.