Version 0.3Brouillon
Odoo
Protocol: OIDC
Module: Built-in (auth_oauth) - available since Odoo 10; OIDC support since Odoo 16
Estimated time: 15-20 minutes
Reference docs: Odoo - OAuth Authentication (opens in a new tab)
Prerequisites
- Odoo 18 recommended (the steps below). Odoo 16-17 work the same way; Odoo 10-15 require manual provider entry without claim mapping.
- Administrator access to Odoo settings, developer mode enabled (
?debug=1) - Application registered with LuxID with redirect URI:
https://your-odoo.com/auth_oauth/signin - Client ID and Client Secret from your LuxID registration
Step 1 - enable OAuth in Odoo
- Go to Settings > General Settings > Integrations
- Enable OAuth Authentication
- Save
Step 2 - locate the provider settings
Go to Settings > Technical > OAuth Providers (developer mode required).
Click Create to add a new provider.
Step 3 - field mapping
| Odoo field | Value to enter |
|---|---|
| Provider Name | LuxID |
| Authentication URL | https://login.luxid.lu/mga/sps/oauth/oauth20/authorize |
| Scope | openid profile email |
| Validation URL | https://login.luxid.lu/mga/sps/oauth/oauth20/userinfo |
| Data URL | https://login.luxid.lu/mga/sps/oauth/oauth20/userinfo |
| Client ID | Your Client ID from your LuxID registration |
| Client Secret | Your Client Secret from your LuxID registration |
| Allowed | Ticked |
Claim mapping (Odoo 16+)
In Odoo 16+, add claim mapping fields:
| Claim | Maps to |
|---|---|
sub | User identifier (Odoo uses email as login; set login to email) |
email | |
given_name | First name |
family_name | Last name |
Step 4 - test login
- Temporarily point the Authentication URL to
https://login-uat.luxid.lu/mga/sps/oauth/oauth20/authorize - Log out of Odoo and go to the login page
- The LuxID provider button should appear below the standard login form
- Click it and authenticate with your sandbox LuxID Account
- Verify the Odoo user is created with correct name and email
Step 5 - production checklist and common errors
Production checklist
- Restore the Authentication URL to
login.luxid.lu - Set the provider to Allowed in the provider list
- Test with a real LuxID Account and verify the user record in Settings > Users
- Confirm that users who log in via LuxID are assigned the correct Odoo access rights
Common errors
| Error | Cause | Fix |
|---|---|---|
invalid_redirect_uri | Odoo's callback URL not whitelisted | Whitelist https://your-odoo.com/auth_oauth/signin with LuxID |
| Provider button does not appear | OAuth Authentication not enabled | Enable in Settings > General Settings |
| User created with no name | given_name / family_name not in Claim Template | Ask LuxID to add the claims to your Claim Template |
| 500 error after redirect | Validation URL unreachable from Odoo server | Check network/firewall rules; the Odoo server must reach login.luxid.lu |
Mise à jour le 2026-06-02