A government service centre in Abu Dhabi answers residents on WhatsApp. A hospital group in Dubai runs patient enquiries for six clinics from one inbox. A bank’s card-sales team talks to merchants in a chat. In each of them the same question comes from IT and audit before the first message is sent: who can sign in to the inbox, and what happens when someone leaves?
For organisations that run MonoChat on their own servers, the answer is single sign-on through the identity provider the organisation already uses: Microsoft Entra ID, Okta, Keycloak, AD FS or Google Workspace. Since MonoChat 3.8.47, released on 6 November 2026, sign-out follows the identity provider too, in both directions. This guide explains how it works, what to set up and what to check, without the jargon where it is not needed.
Why sign-in matters more for a messaging inbox
A shared WhatsApp inbox holds what customers send: names, phone numbers, ID photos, prescriptions, payment questions. In a large organisation, three things go wrong with passwords:
- People leave and their account stays. HR closes the employee’s Microsoft account, but the inbox password still works.
- A shared PC stays signed in. An agent signs out of Windows at the end of a shift, and the inbox in the browser does not notice.
- Password rules differ. Your identity provider enforces multi-factor authentication and conditional access; a separate inbox password does not.
Single sign-on puts the inbox behind the same door as email and every other company system. Disable a person in the identity provider, and they can no longer sign in to MonoChat.
How MonoChat single sign-on works
MonoChat uses OpenID Connect, the sign-in standard every major identity provider supports. In plain terms:
- A member of staff opens MonoChat and clicks the SSO button, which you can label, for example “Sign in with Company SSO”.
- Your identity provider’s sign-in page opens in a pop-up, with your usual multi-factor checks.
- The provider sends the browser back to MonoChat with a one-time code. The MonoChat server exchanges it for an ID token and checks it before signing the person in.
The checks are the ones security teams expect: the authorization code flow with PKCE, a state and a nonce, a sign-in request valid for 10 minutes and usable once, an ID token signed with one of your provider’s keys and carrying your issuer, your client ID and a verified email address. A sign-in is refused when the provider says the email address is not verified.
Single sign-on is set up once for the whole installation, in the server settings, not per workspace. That matters for groups: one installation can hold several workspaces, for example one per hospital or per emirate office, and the same company login works for all of them. Signing in gives an account, not access. A person sees a workspace only after it invites them and gives them a role.
What changed: sign-out that follows the identity provider
Until 3.8.47, signing out of MonoChat ended only the MonoChat session. Now it works both ways:
| Where the person signs out | What happens |
|---|---|
| In MonoChat | MonoChat sends the browser to your identity provider’s sign-out page, the provider ends its session and sends the person back to MonoChat. If your provider publishes no sign-out endpoint, only MonoChat is signed out. |
| At the identity provider, with back-channel logout | Your provider’s server sends MonoChat a signed logout token directly, without the browser. MonoChat checks its signature, issuer, client ID, event and issue time (at most 10 minutes old) and ends every MonoChat sign-in that came from that provider session, on every device. |
| At the identity provider, with front-channel logout | The provider opens MonoChat’s front-channel address in the person’s browser with the session details (iss and sid), and MonoChat ends the sign-ins of that session the same way. |
Back-channel logout is the OpenID Foundation’s final specification for sign-out sent server to server. Microsoft Entra ID documents single sign-out through front-channel logout: when a user signs out of one application, it sends a request to the front-channel logout URL of every other application the user is signed in to. MonoChat supports both, so whichever your provider uses, the inbox follows.
A password sign-in of the same person is not affected. If you want every sign-in to follow the identity provider, make SSO the only method (below).
Setting it up
The help center page, Single Sign-On for an On-Premise Installation, has every value. The short version:
1. Register MonoChat at your identity provider as a web application with a client secret:
| Setting | Value |
|---|---|
| Sign-in redirect URI | https://<your MonoChat domain>/api/oauth/oidc/redirect |
| Scopes | openid email profile |
| Post-logout redirect URI | https://<your MonoChat domain>/ |
| Back-channel logout URI | https://<your MonoChat domain>/api/oauth/oidc/backchannel-logout |
| Front-channel logout URI (only if your provider has no back-channel logout) | https://<your MonoChat domain>/api/oauth/oidc/frontchannel-logout, with the session (iss and sid) required |
Make sure the ID token carries the email claim, and copy the issuer exactly as your provider’s discovery document shows it. For Entra ID it has the form https://login.microsoftonline.com/<tenant id>/v2.0.
2. Add the settings to the MonoChat server settings: the issuer, client ID and button label in the public block, the client secret in the server-only block, and restart.
3. Decide who may sign in.
autoCreateAccountscreates a MonoChat account at a person’s first SSO sign-in, even when sign-up is by invitation only.allowedEmailDomainslimits SSO to your own domains, for example your ministry’s or your group’s. For Google Workspace, MonoChat checks the Workspace domain of the account instead of the address.- People who already have a MonoChat account with the same address are linked to SSO at their first sign-in, either automatically when the provider says the address is verified, or after one password sign-in. Entra ID and AD FS do not send the verified flag, so with them keep password sign-in on until everyone has linked SSO, or invite people again.
4. Make SSO the only way in, when everyone has linked. With the sign-in methods set to SSO only, the sign-in page shows only the SSO button and the server refuses password and social sign-in. Root super users can still sign in with a password at the fallback address, so the installation is never locked out if the identity provider is down. To stop new SSO accounts from opening their own workspaces, turn workspace creation off.
5. Open the network paths. The people who sign in must reach MonoChat’s sign-in addresses; the MonoChat server must reach your provider’s discovery document, token endpoint and keys over HTTPS; and with back-channel logout, your provider’s servers must reach MonoChat’s back-channel logout address. If you also restrict the installation to your office networks, the help center lists every path external services need.
Check it before go-live
The help center’s checklist has six steps:
- Sign in with the SSO button; the pop-up closes and you are in.
- Sign in as a person with no MonoChat account; the account is created, or refused if you did not turn on account creation.
- Try a person on another domain; the sign-in is refused.
- With SSO only, try a password; it is refused, and a root super user can still use the fallback address.
- Sign out of MonoChat; you land on your provider’s sign-out page and back, and the provider asks you to sign in again.
- Sign in through SSO, sign out at the provider in the same browser, and confirm MonoChat signs you out. A second browser with its own provider session stays signed in, unless your provider ends every session of the person.
One limit to plan for
The MonoChat mobile app does not offer SSO yet. If you make SSO the only sign-in method, agents cannot sign in to the mobile app. Keep password sign-in on for the people who answer from the app until it supports SSO.
Where this fits with the rest of your controls
Single sign-on answers who can get in. The other questions an audit asks are answered elsewhere:
- Where WhatsApp data is stored. When you connect a number to the Cloud API, you choose its storage region, and the UAE is one of them; it covers Meta’s stored copy only, as our guide to the UAE data storage region explains. With an on-premises installation, MonoChat’s own database runs on your servers.
- What each person can do. Roles in each workspace decide who sees which conversations and settings.
- What happened. MonoChat keeps the conversation history in the inbox, and you can export it.
For a bank or a payment business, also read our note on the CBUAE circular on WhatsApp: it limits what licensed financial institutions may do on messaging apps, whatever the sign-in method.
Checklist
- MonoChat registered at your identity provider as a web application with a client secret
- Redirect, post-logout and back-channel (or front-channel) logout URIs registered
- Issuer copied exactly from the discovery document;
emailin the ID token - Allowed email domains set to your own
- Existing accounts linked to SSO before passwords are switched off
- SSO-only sign-in turned on; fallback for root super users tested
- Network paths open in both directions
- Sign-out tested from MonoChat and from the identity provider
- A plan for agents who need the mobile app