1- .. image :: https://odoo-community.org/readme-banner-image
2- :target: https://odoo-community.org/get-involved?utm_source=readme
3- :alt: Odoo Community Association
4-
51=============================
62Authentication OpenID Connect
73=============================
@@ -17,7 +13,7 @@ Authentication OpenID Connect
1713.. |badge1 | image :: https://img.shields.io/badge/maturity-Beta-yellow.png
1814 :target: https://odoo-community.org/page/development-status
1915 :alt: Beta
20- .. |badge2 | image :: https://img.shields.io/badge/license -AGPL--3-blue.png
16+ .. |badge2 | image :: https://img.shields.io/badge/licence -AGPL--3-blue.png
2117 :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
2218 :alt: License: AGPL-3
2319.. |badge3 | image :: https://img.shields.io/badge/github-OCA%2Fserver--auth-lightgray.png?logo=github
@@ -130,6 +126,26 @@ In Odoo, create a new Oauth Provider with the following parameters:
130126- JWKS URL: The "jwks_uri" URL found in the OpenID Endpoint
131127 Configuration of your Keycloak realm
132128
129+ Auto-link existing users by email
130+ ---------------------------------
131+
132+ By default, a user must already have ``oauth_uid `` set to be recognised
133+ on login. To automatically link **existing ** Odoo users on their first
134+ OIDC login (matching by ``login = email `` from the token), enable the
135+ system parameter:
136+
137+ =========================== ========
138+ Key Value
139+ =========================== ========
140+ ``auth_oidc.link_by_email `` ``True ``
141+ =========================== ========
142+
143+ The link is performed only when **exactly one ** active user matches the
144+ email. If zero or more than one match is found the request falls through
145+ to the standard behaviour (signup or ``AccessDenied ``). Once linked, the
146+ user's ``oauth_uid `` is stored and subsequent logins follow the normal
147+ path.
148+
133149.. |image | image :: https://raw.githubusercontent.com/OCA/server-auth/17.0/auth_oidc/static/description/oauth-microsoft_azure-api_permissions.png
134150.. |image1 | image :: https://raw.githubusercontent.com/OCA/server-auth/17.0/auth_oidc/static/description/oauth-microsoft_azure-optional_claims.png
135151.. |image2 | image :: https://raw.githubusercontent.com/OCA/server-auth/17.0/auth_oidc/static/description/odoo-azure_ad_multitenant.png
@@ -151,6 +167,12 @@ Known issues / Roadmap
151167Changelog
152168=========
153169
170+ 17.0.1.3.0 2026-05-18
171+ ---------------------
172+
173+ - Add optional auto-link of existing users by email on first OIDC login
174+ (``auth_oidc.link_by_email `` system parameter, disabled by default).
175+
15417617.0.1.0.0 2024-03-20
155177---------------------
156178
@@ -223,6 +245,7 @@ Contributors
223245- Stéphane Bidoul <stephane.bidoul@acsone.eu>
224246- David Jaen <david.jaen.revert@gmail.com>
225247- Andreas Perhab <andreas.perhab@wt-io-it.at>
248+ - Jose Zambudio Bernabeu <zamberjo@gmail.com>
226249
227250Maintainers
228251-----------
0 commit comments