Single sign-on
Sign your people in with your own identity provider: Entra ID, Google Workspace, Okta, or any SAML or OIDC provider.
What it does
Single sign-on lets your people sign in to the NexGuard console with your organisation's own identity provider. Passwords stay with your provider; NexGuard receives only the result. It supports OpenID Connect and SAML 2.0, so it works with Microsoft Entra ID, Google Workspace, Okta, AD FS and any other standards-compliant provider.
It is set up by an administrator of your organisation (the sso:manage permission, held by the tenant owner and tenant admin roles) under Settings → Single sign-on. It is separate from API keys: a key authenticates a machine, single sign-on authenticates a person.
Going live, step by step
- Enter your provider's settings. Choose OpenID Connect or SAML 2.0 and fill in the form. They are saved as a draft. An OIDC client secret is stored encrypted and is never shown again.
- Register NexGuard with your provider. Copy the values under Register NexGuard with your provider into your provider (see below).
- Test connection. NexGuard reads your provider's published configuration (discovery document and keys, or SAML metadata) and checks the issuer, endpoints, keys and certificate dates. Nothing is used until this passes.
- Try sign-in. Open the link in a private window and sign in as one of your people. This proves the client secret and the redirect registration, which no automated check can.
- Prove an email domain. Add your domain and create the DNS TXT record the console shows, at
_nexguard-challenge.<your-domain>, then press Check DNS. A proven domain belongs to exactly one organisation on the platform. - Activate. It needs a passed test, a completed test sign-in and at least one proven domain. People whose address is in a proven domain now reach your provider from Sign in with your organisation (SSO) on the sign-in page.
A connection moves draft → tested → active → disabled. Changing provider settings returns it to draft, and settings cannot be changed while it is active: disable it first. Every change is recorded in your organisation's audit log and in the connection's own history.
Values to register with your provider
The console shows these four values for your organisation. They share one base address and an alias of the form nxg-<24 hex characters> that NexGuard assigns; do not type or guess them.
| Console label | Shape | Used for |
|---|---|---|
| Redirect URI (OIDC) | …/broker/nxg-…/endpoint | OIDC: the redirect (reply) URI |
| Entity ID / audience (SAML) | …/broker/nxg-… | SAML: the service provider entity ID and audience |
| Assertion consumer service URL (SAML) | …/broker/nxg-…/endpoint | SAML: the ACS URL |
| Service-provider metadata URL (SAML) | …/broker/nxg-…/endpoint/descriptor | SAML: import the whole registration from one URL |
Microsoft Entra ID (OIDC)
- Entra admin centre → App registrations → New registration. Platform: Web; redirect URI: the OIDC redirect URI above.
- Certificates & secrets → New client secret; copy its value.
- Token configuration → Add groups claim, if you want to map groups to roles.
- In NexGuard: protocol OpenID Connect; issuer
https://login.microsoftonline.com/<tenant-id>/v2.0; client ID = the Application (client) ID; the client secret; groups claimgroups.
Google Workspace (SAML)
- Admin console → Apps → Web and mobile apps → Add custom SAML app.
- Download the IdP metadata (Google does not publish a metadata URL), or copy the SSO URL, entity ID and certificate.
- Service provider details: the ACS URL and entity ID from NexGuard; Name ID format
EMAIL, Name ID = Primary email. - Attribute mapping: Primary email →
email; Group membership →groups. - In NexGuard: protocol SAML 2.0; paste the metadata XML; email attribute
email; groups attributegroups.
Okta (OIDC)
- Applications → Create App Integration → OIDC → Web Application. Sign-in redirect URI: the OIDC redirect URI above. Grant type: Authorization Code.
- Sign On tab → OpenID Connect ID Token → Groups claim filter, for example
groupsmatching.*. - In NexGuard: issuer
https://<your-okta-domain>/oauth2/default(or your org authorization server); client ID and secret from the app; groups claimgroups.
Any other SAML 2.0 provider (AD FS and others)
- Create a relying party / SAML application. Import the service-provider metadata URL, or enter the entity ID and ACS URL by hand.
- Send the user's email as the NameID (email format) and as an attribute named
email; send group membership as an attribute namedgroups. - In NexGuard: protocol SAML 2.0; your provider's metadata URL (AD FS publishes
/FederationMetadata/2007-06/FederationMetadata.xml) or pasted metadata XML; the email and groups attribute names.
Any other OIDC provider works the same way as Entra ID and Okta: issuer, client ID, client secret, and the redirect URI registered at the provider. Add a Discovery URL only if it is not the issuer followed by /.well-known/openid-configuration.
Roles and access
- Group to role mapping. One line per mapping:
group name = role. Every matching role is given. You cannot map a group to a role that carries permissions you do not hold yourself. - Default role. What a person receives when no group matches, or none, which refuses people without a matching group.
- Automatic accounts. Create a seat on a person's first sign-in. Only for addresses in your proven domains, and never beyond your plan's seats.
- Refuse password sign-in for my domains. Available once single sign-on is active. A password session for an address in your proven domains is then refused.
How NexGuard decides who you are
The organisation a person belongs to never comes from anything the browser sends. After a sign-in through your provider, NexGuard requires that the session really came through your organisation's provider and that the person's email address is in a domain your organisation has proven. A person your provider vouches for whose address belongs to another organisation's domain gets nothing. An existing NexGuard account with the same address is linked only after its owner re-authenticates with that account's password, so a provider cannot take over somebody else's account by asserting their address.
If something does not work
- Test connection fails. The message names the check: issuer mismatch, an unreachable discovery document, an expired certificate. Nothing is loaded until every check passes.
- Try sign-in shows a redirect error at your provider. The redirect URI or ACS URL registered there differs from the one in the console, character for character.
- Sign-in works but no access is granted. The address is outside your proven domains, no group matches and there is no default role, or the plan has no free seat. Settings → Single sign-on explains which.
- Passwords are refused. The password sign-in is for an address in a domain with enforcement on. Choose Sign in with your organisation (SSO).