Social Login: Sign in with Google, Apple, Microsoft, GitHub, LinkedIn - OAuth2 SSO
by Modvanta https://modvantaapps.tech/odoo-apps/social-login/$ 14.96

One click login with the accounts your customers already have
Adds the OAuth2 Authorization Code flow with PKCE and ID token verification to Odoo's own OAuth login, with ready provider records for Google, Apple, Microsoft, GitHub, LinkedIn, Discord and any OpenID Connect identity provider.
Written and supported by Modvanta - modvantaapps@gmail.com
What it does
Odoo's built-in OAuth login only speaks the old implicit flow, which most providers have switched off. Without it, Sign in with Microsoft, Apple or GitHub cannot be set up, and company SSO through Okta, Auth0 or Keycloak is out of reach.
This module adds the Authorization Code flow: the browser is sent to the provider with a state, a nonce and a PKCE challenge, the code comes back to the module's own callback, and Odoo exchanges it for tokens on the server. ID tokens are checked against the provider's signing keys, the audience, the issuer, the expiry and the nonce.
Matching users, signing up new ones and opening the session are left to Odoo's auth_oauth, so the login works exactly like Odoo's own. When something is wrong, the login page explains what - instead of a bare Access Denied.
Who it is for
Online shops Let customers sign in with Google, Apple or Microsoft instead of creating another password. | Companies with an identity provider Single sign-on for staff through Okta, Auth0, Keycloak or Microsoft Entra ID. | Developer communities and SaaS portals GitHub and Discord login for technical audiences. |
Key features
Screenshots were taken on Odoo 19 with this module on a clean demo database (company Northwind Trading Co). No real provider was contacted: the OpenID Connect login used a stand-in identity provider (Northwind SSO) on the bench, and all client IDs are placeholders.
Feature 1
Buttons on the login page
Every enabled provider gets a Sign in with ... button under the normal login form: here Microsoft, Google, GitHub and the company SSO.

Feature 2
Signed in after one click
Clicking Sign in with Northwind SSO went through the full Authorization Code flow with PKCE: the code was exchanged on the server, the ES256 ID token was verified with the provider's keys, and a new portal account for Olivia Grant was created and logged in.
The second login matched the same account by its provider user ID

Feature 3
Errors you can act on
With sign-up switched off on the website, an unknown identity is refused and the login page says why, where to change the setting, and the OAuth user ID to set on an existing user.
An existing account is never taken over just because the email matches

Feature 4
All providers in one list
Settings -> Users & Companies -> OAuth Providers lists Odoo's providers and the module's: Apple, Microsoft, Google (OpenID Connect), GitHub, LinkedIn, Discord and a generic OpenID Connect provider, all disabled until you add your client ID.

Feature 5
Any OpenID Connect provider
For Okta, Auth0, Keycloak or another OIDC server, set the Discovery URL and Discover Endpoints fills the authorization, token, userinfo and JWKS URLs and the issuer from the provider's configuration document.
Validation by ID token (JWT) or by the UserInfo endpoint

Feature 6
Google, ready to fill
The Google (OpenID Connect) record has the authorization, token and userinfo URLs and the scope already set. Paste your client ID and secret and enable it.

Feature 7
Sign in with Apple
Apple uses form_post and a client secret that is a signed JWT: enter the Apple Team ID, Key ID and the private key, and the module signs the secret itself.

Feature 8
GitHub, including private emails
GitHub's record includes the email endpoint, so an account whose email is private still gets its verified address.

How it works, step by step
| 1 | Create an app at the provider Register a web application at Google, Microsoft, Apple, GitHub, LinkedIn, Discord or your identity provider. |
| 2 | Register the redirect address Use https://<your Odoo domain>/mdv_social_login/callback as the allowed redirect URI. |
| 3 | Fill the provider in Odoo Settings -> Users & Companies -> OAuth Providers: paste the client ID and secret (or Apple's key details), or use Discover Endpoints for OpenID Connect. |
| 4 | Enable it Tick Allowed. The button appears on the login page. |
| 5 | Decide about sign-up With Free sign up new customers get an account at their first login; with invitations only, existing users are linked by their provider user ID. |
Settings
| OAuth2 Flow | Authorization Code (recommended) or the legacy implicit flow. |
| Validation Mode | ID Token (JWT) with JWKS URL and issuer, or the UserInfo endpoint. |
| Use PKCE | On by default; off for providers that post back to the server (Apple). |
| Client Secret Type | Static secret, or Apple signed JWT. |
| Discovery URL | OpenID Connect configuration document for Discover Endpoints. |
| Response Mode / Extra Parameters | For providers that need form_post or extra query parameters. |
Frequently asked questions
Which providers are included?
Google (OpenID Connect), Apple, Microsoft, GitHub, LinkedIn, Discord and a generic OpenID Connect record for Okta, Auth0, Keycloak and similar.
Does it replace Odoo's OAuth module?
No. It builds on auth_oauth: user matching, sign-up and sessions stay Odoo's own.
Is an account taken over when the email matches?
No. A social identity is linked by the provider's user ID; an existing account with the same email is not taken over.
Are ID tokens verified?
Yes: signature against the provider's keys, audience, issuer, expiry and nonce.
Do I need my own app at each provider?
Yes. Each provider issues the client ID and secret for your domain.
Compatibility
Odoo 19 Community and Enterprise | Depends on OAuth Authentication, Sign up | Tested 30 automated tests |
Give your users the login button they expect
Questions before you buy, help with setup, or a change for your own workflow - write to us and a developer answers.
SUPPORT | AUTHOR Modvanta | INCLUDED Module, setup help by email |
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
Discuss (mail)
|
| Lines of code | 754 |
| Technical Name |
mdv_social_login |
| License | OPL-1 |
| Website | https://modvantaapps.tech/odoo-apps/social-login/ |
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