Skip to content

Single Sign-On (SSO) ​

Configure OpenID Connect (OIDC) Single Sign-On to allow your users to sign in using your organisation's identity provider (e.g. Microsoft Entra ID, Google Workspace, Okta). Configure it in Settings → SSO.

Configuration Fields ​

  • Enable SSO — toggle SSO on or off
  • Require SSO — turns password sign-in off for everyone in the organisation (see below)
  • Display Name — button label shown on the sign-in page (e.g. "Sign in with Microsoft")
  • Authority / Issuer URL — your identity provider's OIDC issuer URL (e.g. https://login.microsoftonline.com/{tenant-id}/v2.0)
  • Client ID — your OIDC application's client ID
  • Client Secret — your OIDC application's client secret
  • Scopes — OIDC scopes to request (must include openid and email)

The settings page displays the required redirect URI that you must configure in your identity provider.

Requiring SSO ​

With SSO merely enabled, the password form stays on the sign-in page and either route works. That is convenient, but it also means any control your identity provider enforces — multi-factor authentication, conditional access, device compliance, sign-in risk policies — is optional in practice: one form submission goes round all of it.

Require SSO closes that. With it on, every password sign-in for your organisation's staff is refused, whatever the password. The identity provider becomes the only way in, and whatever it demands is what everyone does. This is how the product meets an MFA requirement: not with its own second factor, but by making yours unavoidable.

Before you can turn it on ​

The switch stays disabled until all of the following are true:

  • SSO is enabled
  • the authority, client ID and client secret are all saved
  • somebody has already signed in with SSO successfully
  • at least one active member holds the Bypass SSO Requirement permission

The last two are the ones that matter, and they guard the same thing from opposite ends. There is no platform-level administrator here to appeal to: an organisation that turns password sign-in off while its OIDC application is misconfigured has locked out every one of its own staff. Requiring a completed sign-in proves the provider works today; requiring an emergency access account means somebody can still get in on the day it stops.

So, before turning this on: give a role Bypass SSO Requirement (the seeded Admin role has it), and sign in with SSO yourself once.

What happens when you turn it on ​

  • Everyone is signed out. Existing sessions are ended so the password logins the setting forbids cannot carry on working — a refresh token would otherwise outlive the change by a fortnight. Bearer tokens already issued expire within the hour.
  • The sign-in page for your organisation stops showing the email and password fields and offers only the SSO button.
  • A password attempt made anyway is refused, and the refusal is recorded in the Access log as a failed login with the reason Single sign-on is required for this organisation.
  • Password reset emails still work, but the new password will not get anyone in — except on an account holding Bypass SSO Requirement.

Two-factor authentication is configured separately, in Settings → Organisation. Where sign-in goes through your provider, that provider's MFA is usually the better control and the setting can stay off — but it is worth turning on if you keep emergency access accounts, since those sign in with a password and nothing the provider enforces applies to them.

Turning it off ​

Switching Enable SSO off clears Require SSO with it, and password sign-in comes straight back. The enforcement is never left armed against a provider that is no longer configured.

Getting back in

If your identity provider stops working while enforcement is on — an expired client secret, a deleted app registration, a tenant-wide outage — the only way in is an account whose role holds Bypass SSO Requirement, signing in with its password. Make sure that account's password is stored somewhere an incident responder can actually reach, and keep the client secret's expiry date in your own calendar.

Every use of that account writes an SSO Bypass Sign-In entry to the access log. Failing all of it, recovery is an operator setting "RequireSso" = false on the organisation's row in SsoConfigurations.

Where the SSO Button Appears ​

The SSO button only appears when users access the sign-in page via your organisation's custom domain (e.g. foi.mycouncil.gov.uk), subdomain slug, or a sign-in link containing your organisation slug (?org=my-council). It does not appear on the main Phanera application domain.

When SSO is enabled but not required, users can still sign in with email and password. When it is required, the password form is not shown at all — and is refused by the server even if reached another way, including on the main application domain where the button never appears.

Security notes

SSO uses a state-based CSRF protection flow. Authorization codes are single-use and expire after 60 seconds. SSO configuration is cached for 10 minutes for performance. In production, client secrets are stored in Azure Key Vault.

Phanera — FOI, SAR, EIR & Complaints management