Website SSO - Single Sign On Across Odoo Websites (Odoo as OAuth2 / OpenID Connect Provider)
by Modvanta https://modvantaapps.tech/odoo-apps/website-sso/$ 28.92

Website SSO - Single Sign On Across Odoo Websites
Your main Odoo website becomes the login for your other Odoo websites. Customers sign in once and are signed in everywhere you connect.
Written and supported by Modvanta - modvantaapps@gmail.com
Single sign onOAuth2 and OpenID ConnectAutomatic sign inLink accounts by emailMulti websiteOdoo 19
What it does
In plain language Install the module on the main (primary) website and on each connected (secondary) website. On the primary, add each connected website and copy its Client ID. On the connected website, paste it in Connect to a Primary Website. Visitors click Sign in with your main website, or are signed in automatically when they already are on the primary. | Who it is for Companies with several Odoo shops or portals on different domains or databases. One Odoo database with several websites on different domains. Teams who want one customer login and one place to block access. |
Key features
Every screenshot below was taken on Odoo 19 with this module installed.
FEATURE 1
Connected websites
Each connected website gets a Client ID and a secret, with its exact return addresses.
Choose who may sign in: everyone, customers only, internal users only or selected users
Block single users
Optional "Allow" screen the first time
New secret or sign everyone out in one click

FEATURE 2
Every sign in recorded
See who signed in to which website, when, from which address, and revoke tokens.
Access tokens expire after the lifetime you set
Tokens of archived users stop working at once

FEATURE 3
Consent screen
When you ask for it, users confirm before their name and email are shared with the connected website.
Their choice is remembered
Cancel sends them back without signing in

FEATURE 4
Sign in button and options on the connected website
The connected website uses the standard Odoo OAuth login, extended with Website SSO options.
Sign in automatically when already signed in on the primary
Link an existing account with the same email instead of refusing
Show the button only on chosen websites

FEATURE 5
Sign in with your main website
The button on the login page of the connected website.
New customers get an account through normal Odoo sign up
Returning customers land where they were going

FEATURE 6
Connect in one step
On the connected website, enter the primary URL and the Client ID; the endpoints are read from the primary.
Checks that the primary answers before saving

FEATURE 7
Standard OpenID Connect provider
Any OpenID Connect client can use your Odoo as identity provider too.
Authorization code flow with PKCE and the implicit flow
Token, userinfo, revoke and logout endpoints
id_token signed with the client secret

How it works
| 1 | Primary website Install the module, open Settings -> Users -> Website SSO -> Connected Websites and add the second website. |
| 2 | Secondary website Install the module, open Connect to a Primary Website and paste the URL and Client ID. |
| 3 | Sign in Customers click the button or are signed in automatically. |
| 4 | Control Change who may sign in, block users or sign everyone out on the primary. |
Settings
| Who may sign in | Everyone, customers, internal users or selected users, plus blocked users. |
| Ask users to confirm | Consent screen on first sign in. |
| Token lifetime | Minutes an access token stays valid. |
| Sign in automatically | On the connected website, per sign in button. |
| Link existing accounts by email | On the connected website, per sign in button. |
FAQ
Do both websites need this module?
Yes, install it on the primary and on each connected Odoo. Other OpenID Connect clients only need the primary.
Does it work for several websites of one database?
Yes. Use Add Button on This Database on the connected website record; the button is not shown on the primary itself.
Are passwords shared?
No. Passwords stay on the primary; connected websites only receive the name and email after the user signs in there.
Can new customers sign up on the connected website?
Yes, when sign up is allowed there (Settings -> Customer Account -> Free sign up).
Is it the same as social login?
No. Social login signs in with Google or Apple. Website SSO makes your own Odoo the login for your other Odoo websites.
Compatibility and support
Odoo 19 Community and Enterprise. Depends on OAuth Authentication, Signup and Website.
Questions, a demo or a custom change: modvantaapps@gmail.com
AUTHOR Modvanta | INCLUDED Provider, connected websites, client button |
Buy Now - $29Hire Us for Odoo Work
Written and supported by Modvanta - modvantaapps@gmail.com
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Discuss (mail)
• Website (website) |
| Lines of code | 720 |
| Technical Name |
mdv_website_sso |
| License | OPL-1 |
| Website | https://modvantaapps.tech/odoo-apps/website-sso/ |
Odoo Proprietary License v1.0 This software and associated files (the "Software") may only be used (executed, modified, executed after modifications) if you have purchased a valid license from the authors, typically via Odoo Apps, or if you have received a written agreement from the authors of the Software (see the COPYRIGHT file). You may develop Odoo modules that use the Software as a library (typically by depending on it, importing it and using its resources), but without copying any source code or material from the Software. You may distribute those modules under the license of your choice, provided that this license is compatible with the terms of the Odoo Proprietary License (For example: LGPL, MIT, or proprietary licenses similar to this one). It is forbidden to publish, distribute, sublicense, or sell copies of the Software or modified copies of the Software. The above copyright notice and this permission notice must be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Please log in to comment on this module