OdooWiki OCA HUB

Auth SAML environement

auth_saml_environment folder_open OCA/server-env open_in_new
base License: AGPL-3

This module allows to use server env for SAML configuration

auto_awesome What this module does

AI-generated from the code · Odoo 18.0

Lets administrators configure SAML single sign-on settings (identity provider metadata, certificates, entity ID) from server environment configuration files instead of typing them in Odoo, and adds file-path fields for the SAML certificates.

This module extends the SAML provider configuration so that its settings can come from the server's environment configuration files rather than being entered by hand in Odoo. It works together with the SAML authentication module and the server environment module.

On the SAML provider form, two new fields appear next to the public and private certificate fields: a path for the public certificate and a path for the private key. The original certificate fields become read-only, so they are filled from the configuration files instead of being edited directly.

The following settings can be read from the environment: the identity provider metadata, the service provider base URL, the public certificate path, the private key path and the entity ID. The module also makes the identity provider metadata, public certificate, private key and entity ID optional on the provider record.

When Odoo needs the certificate or key, it first looks at the configured file paths and falls back to the standard behaviour if no path is set. The configuration is grouped under a global section named auth_saml_provider in the server configuration files.

In short, it moves SAML setup out of the database and into deployment configuration, which is useful when the same configuration must be shared across several databases or environments.

Models and fields (1)
  • auth.saml.provider · new modelentity_id, idp_metadata, sp_pem_public, sp_pem_private, sp_pem_public_path (sp_pem_public_path env config value), sp_pem_private_path (sp_pem_private_path env config value)

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 15.0

Confirmed on 2026-11-03 in branch 15.0 of OCA/server-env.

terminal Installation and usage

OCA documentation · Odoo 18.0

To install this module, you need to have the following modules installed and properly configured: server_environment module auth_saml

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_saml_provider.\]

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

Example of configuration

[auth_saml_provider.my_idp]

idp_metadata=\<...\> sp_baseurl=https://odoo-community.org sp_pem_public_path=/data/cert.pem sp_pem_private_path=/data/key.pem

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

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.