Authentication
Authentication controls how dashboard users sign in to Leena AI. These are the admins, agents, and builders who log in to configure and operate the platform. The page also lets you limit sign-in to a defined set of networks. The last section explains how dashboard sessions end and how users are warned before they do.
This is separate from how employees authenticate into the assistant itself. Those settings live under Leena Channels (Apps authentication, Web authentication, Other auth settings, and SAML apps).
Where to find it
Open the Admin Console, then go to Dashboard settings → Authentication.
The page has two parts: choosing the sign-in method, and restricting which networks can reach the dashboard. Each part saves on its own. If you try to leave with unsaved changes, you're asked to confirm before they're discarded.
AvailabilityAuthentication is not available on trial licences. Where it is available, it opens for System Admin and for the Channel & Authentication Setup Manager role.
1. Choose the sign-in method
Under Sign-in method, pick Email + Password or SSO. The choice applies to every dashboard user in your company. Picking a method shows its setup below; nothing changes for users until you save that setup.
SSO can't be switched backOnce SSO is turned on, Email + Password can no longer be selected. Make sure your identity provider setup works before you turn SSO on.
Leena AI staff accounts (@leena.ai) always sign in with email and password, whichever method you choose.
Email + Password

Users sign in with their email address and a password set on Leena AI. Selecting this shows Configure Password Policy, where you set the rules new passwords must follow.
Password must contain. Turn on any combination of:
- At least one uppercase letter (A–Z)
- At least one lowercase letter (a–z)
- At least one number (0–9)
- At least one symbol, from
! @ # $ % ^ & ( ) * + = _ -
Block reused passwords. Stops people from cycling back to a recent password. Turn it on, then set how many recent passwords to remember, from 1 to 9.
Password expiry. Forces a password change on a schedule. Turn it on, then set the number of days a password stays valid, from 1 to 365.
Use Save to apply the policy, or Cancel to drop your edits and restore the last saved rules. Both stay inactive until you change something.
When users set or reset a password, a checklist shows which rules their new password meets, and they can't submit until it meets all of them. Passwords can't start or end with a space.
SSO

Users sign in through your identity provider using SAML. You can connect more than one SSO app, for example one for each subsidiary or identity provider, and decide which email domains use which app. Selecting SSO shows SSO setup, with the list of your company's SSO apps.
How users are routed
On the sign-in screen, users enter their email address first. Leena AI then sends them to the SSO app that their email domain is assigned to. Anyone whose domain isn't assigned to an app goes to the default app.
Domains match exactly. Assigning company.com doesn't cover eu.company.com; add each subdomain your users sign in with. Each domain can belong to only one app.
The SSO apps list
Each app in the list shows its name, its email domains, and its status:
| Status | Meaning |
|---|---|
| Ready | Fully set up and signing users in |
| Draft | Still being set up. A draft signs nobody in, and its domains aren't used yet |
| Setup incomplete | Saved before drafts were introduced, without its identity provider details |
The default app carries a Default badge, and its domains column reads All other domains. Use the ⋮ menu on a row to Edit, Make default, or Remove an app.
Add an SSO app

Select Add SSO app. The app is created straight away, so that Leena AI can generate the details your identity provider needs, and its editor opens. The first app you add is always the default.
The editor has three sections.
SSO app details. Give the app a name so you can recognise it in the list, such as "Corporate Okta". Then copy these values into your identity provider. They're generated for you and are read-only:
- Entity ID, also called the audience URI or service provider entity ID
- ACS URL, also called the reply URL, where sign-in responses are sent
- Leena AI certificate, which lets your identity provider confirm requests come from Leena AI
If your identity provider asks for a metadata file, use Download metadata to hand these over in one file. Each SSO app has its own Entity ID, so register each one in your identity provider separately.
Identity provider details. The fastest route is to upload the XML metadata file from your identity provider, which fills in the fields below. You can still edit them afterwards, or enter them by hand:
| Field | What to enter |
|---|---|
| SSO URL | The page where your identity provider signs users in. Also called the SAML URL or sign-on URL |
| Issuer (entity ID) | Optional. Your identity provider's unique ID. Microsoft Entra calls it the Microsoft Entra Identifier |
| Signing certificate | The certificate Leena AI uses to verify sign-in responses, copied from your identity provider |
| Signature algorithm | Chosen from the list. Must match the setting in your identity provider |
| Identifier format | How your identity provider identifies each user, usually by email. Chosen from the list |
Email domains. Type each domain, such as company.com, and press Enter. Users whose email ends in one of these domains sign in through this app. Every app except the default needs at least one domain. Turn on Default app to make this app the default instead; this replaces the current default.
When you're done, choose how to save:
- Save and test saves the app and puts it live. You're then offered a Test sign-in, which signs you in through this app even if your own domain isn't assigned to it. Test before relying on a new app.
- Save as draft keeps what you've entered without putting the app live. Drafts sign nobody in, so you can finish the setup later.
If you leave the editor of a newly added app without saving anything, the empty app is removed.
Turn on SSO
Setting up apps doesn't change how anyone signs in. Until you turn SSO on, an SSO is off banner shows and dashboard users keep signing in with Email + Password.
When the default app is ready, select Turn on SSO and confirm. Users sign in through SSO from their next sign-in. This can't be undone from this page.
Change the default app or remove an app
Make default moves the default to another app. That app must be fully set up first. From then on, users whose domain isn't assigned to another app sign in through it.
Remove deletes an app. Users from its domains sign in through the default app instead, and the removed app stops accepting sign-ins. This can't be undone. To remove the default app, make another app the default first.
Already using SSO?Your existing setup appears as the default app with no domains assigned, so everyone keeps signing in exactly as before. Add more apps and assign domains to them only when you need different users to sign in through a different identity provider.
2. Restrict IP addresses
Limit dashboard sign-in to specific networks. Turn the switch on, then add each IP range that should be allowed. Each entry takes:
- Name, so the entry is recognisable later, such as the office or VPN it belongs to
- IP range, entered as an IP address and a Netmask. The netmask sets the size of the range:
/24allows 256 addresses,/32allows exactly one. You can paste a full range, such as10.0.0.0/24, to fill both fields at once.
Use Add more for further ranges. Only IPv4 addresses are accepted, the netmask must be a number from 0 to 32, and the same range can't be added twice. A badge shows how many ranges are in the list.
Changes take effect only when you select Save; Cancel discards them. This includes turning the switch off, which lifts the restriction for everyone once saved.
Add your own network firstRestrictions apply once you save at least one range. From then on, anyone connecting from outside every listed range is signed out and can't sign in, including you.
Add every network your admins sign in from, including VPN egress ranges and any remote offices, and confirm your own address is covered before you save. Saving an incomplete list will lock you out of the dashboard.
3. Session expiry and re-authentication
Every dashboard session lasts a fixed time from sign-in. When it ends, the user is signed out and has to sign in again. Shortly before that happens, the dashboard warns them and lets them extend the session without losing their work.
Session length
Session length isn't set on this page. It's the Token expiry duration on Dashboard settings → Setup, entered in minutes. Left blank, sessions last 45 days.
If a user works across several workspaces, each workspace's own setting applies while they're in it. Opening a workspace with a shorter session length ends the session at that workspace's limit, counted from when the user signed in. If that time has already passed, the user is told their session for the workspace has ended and has to sign in again.
The expiry warning
In the final 60 minutes of a session, an amber banner appears across the top of the dashboard:
Your session will expire in {time}. Re-authenticate now to stay signed in, or you will be logged out automatically.
The countdown updates every second and stays accurate even if the tab was in the background or the computer was asleep. For sessions of 60 minutes or less, the banner appears at the halfway point instead — a 30-minute session warns with 15 minutes left — so it isn't on screen from the moment the user signs in.
The banner shows for every dashboard user, whatever their sign-in method. With the default 45-day session, few users ever reach the warning window; it matters most where the token expiry duration has been shortened.
If a maintenance banner is also active, the session warning takes its place until the user deals with it.

Re-authenticate
Re-authenticate opens the sign-in screen in a new tab, with a banner explaining what happens next:
Sign in to extend your session. This tab then closes, and your other tab keeps your work.
Once the user signs in there:
- The original tab picks up the new session on its own. It isn't reloaded or redirected, so open forms and unsaved work stay where they were.
- The sign-in tab closes itself. If the browser doesn't allow that, it shows Session extended instead, and the user can close it by hand.
If someone signs in as a different user in that tab, the original tab can't carry on silently. It shows Signed in as a different user, with Reload to continue as that account or Sign out. Unsaved changes on that screen are lost either way.
Dismissing the banner
The × hides the banner. It comes back in the final 5 minutes of the session so the logout is never a surprise, and can be dismissed again there.
When the session runs out
If the user doesn't re-authenticate, they're signed out automatically when the countdown reaches zero. The sign-in screen then shows a banner explaining why:
Your session expired and you were signed out. Sign in again to continue.
Updated 13 days ago
