Skip to content

Single sign-on

For IT administrators

With single sign-on, staff sign in to CardOffice with the work account your organisation already gives them. CardOffice never sees their password, and your identity provider’s own rules, such as multi-factor authentication, apply.

CardOffice supports OpenID Connect (OIDC), for Microsoft Entra ID, Google Workspace and Okta app registrations, and SAML 2.0, for ADFS, Shibboleth, federations and any identity provider your team prefers to run that way. See SAML 2.0 below.

An administrator sets up one connection for the organisation under Settings → Security → Single sign-on. That page shows the redirect URI to register with your identity provider:

https://app.cardoffice.nz/api/auth/sso/callback

From the identity provider you need three things: a discovery URL, a client ID and a client secret. The sections below show where to find them. You also list the email domains whose staff should use this connection.

The sign-in page offers Use single sign-on. The person enters their work email, CardOffice sends them to your identity provider, and they come back signed in. The first time someone signs in, CardOffice creates their account, unless you turn off Create accounts automatically.

Turn on Enforce single sign-on to stop password and passkey sign-in for everyone whose email is on the connection’s domains. Do that only after a real sign-in has worked.

If your organisation has an IP allowlist, single sign-on is limited by it too: a person signing in from outside the listed networks is refused after the identity provider sends them back.

  1. Register an application. In the Entra admin centre go to Applications → App registrations → New registration. Choose Single tenant, platform Web, and enter the redirect URI above.

  2. Create a client secret under Certificates & secrets. Copy its Value straight away; it is shown once. Note when it expires and set a reminder to replace it.

  3. Collect the IDs. The Overview page shows the Application (client) ID and the Directory (tenant) ID. Your discovery URL is:

    https://login.microsoftonline.com/<tenant-id>/v2.0/.well-known/openid-configuration

    It must contain your tenant ID. CardOffice refuses the shared common, organizations and consumers addresses, which would accept accounts from any Microsoft directory.

  4. Make sure an email is sent. Entra includes email only when the account has one. If some accounts have no mailbox, add the optional claim under Token configuration → Add optional claim → ID → email.

  5. Optional: role mapping. Under App roles, create roles, assign users or groups to them, and enter the same values under Role mapping in CardOffice. They arrive in the roles claim.

  1. Create an OAuth client. In the Google Cloud console go to APIs & Services → Credentials → Create credentials → OAuth client ID, choose Web application, and add the redirect URI above.

  2. Set the consent screen to Internal, so only your Workspace accounts can use it.

  3. Use this discovery URL, which is the same for every Workspace:

    https://accounts.google.com/.well-known/openid-configuration
  4. CardOffice accepts a Google account only when its Workspace domain matches one of the connection’s email domains. Personal Gmail accounts are refused.

  5. Google does not send roles or groups at sign-in. Leave role mapping empty and set roles in CardOffice after each person’s first sign-in.

  1. Create an app integration. In the Okta admin console go to Applications → Create App Integration → OIDC - Web Application, enter the redirect URI above, and assign the people or groups who should have access.

  2. Use your discovery URL:

    https://<your-org>.okta.com/.well-known/openid-configuration

    If you use a custom authorisation server, use its discovery URL instead.

  3. Optional: role mapping. Add a groups claim to the ID token, then map group names under Role mapping in CardOffice.

Add a connection under Settings, Security, Single sign-on and choose SAML 2.0. You need three things from your identity provider:

  • its entity ID, the Issuer every assertion names (Entra: Microsoft Entra Identifier),
  • its sign-on URL for the HTTP-Redirect binding,
  • its signing certificate, in Base64 or PEM.

Once saved, the connection shows what your identity provider needs from CardOffice: an identifier (entity ID), a reply URL (assertion consumer service) and a metadata URL you can import instead. Each connection has its own entity ID.

Configure the identity provider to sign the assertion and to send the person’s email address, as an attribute or as the NameID. A persistent NameID is best, because it survives an email change. Role mapping reads the usual role and group attributes (Entra’s role claim, groups, memberOf).

CardOffice accepts an assertion only when its signature verifies against the saved certificate, its audience is that connection, its issuer is the saved entity ID, it answers a sign-in that CardOffice started in the last ten minutes, and it has not been used before. Sign-ins started from the identity provider’s own portal are refused, because nothing ties them to a request.

The connection shows the certificate’s expiry date, and warns 30 days before it expires. An expired certificate is refused, so plan the change:

  1. When your identity provider has its next certificate ready, paste it into Secondary signing certificate on the connection and save. CardOffice now accepts assertions signed with either certificate.
  2. Switch your identity provider over to the new certificate. Sign-in keeps working throughout.
  3. Paste the new certificate into Primary signing certificate, tick Remove the secondary certificate when saving, and save.

Enforcing single sign-on means nobody can sign in if your identity provider is down. A break-glass account is the way back in: it may sign in with its password while single sign-on is enforced, but only together with a registered hardware security key.

  • An administrator grants break-glass access from the person’s page under Settings, Users. Nobody can grant it to themselves, the account must have a password, and an organisation can have at most two.
  • The account holder registers keys under Password & security. A physical key (such as a YubiKey) is required; passkeys synced through iCloud or a Google account are refused, because they can be copied to other devices. Register two, and keep the second somewhere safe.
  • To use it, choose Identity provider down? on the sign-in page.

Every break-glass sign-in, and every grant, removal and key change, emails all of your organisation’s administrators, the account itself and your contact address, and is recorded in the audit log. These emails cannot be turned off. Settings, Security warns when single sign-on is enforced and no account has break-glass access with a key.

  • You can map a value from the identity provider’s role or group claim to Administrator, Staff user, Print operator or Viewer, or to one of your organisation’s custom roles.
  • By default, role mapping applies only when an account is first created. After that, single sign-on leaves the person’s role alone, and you manage it in CardOffice.
  • Turn on Keep roles in sync on every sign-in to have CardOffice apply the mapping again each time someone signs in. A promotion or a move to another group in your identity provider then takes effect at the person’s next sign-in. When none of their claims match a mapping, their role stays as it is.
  • Anyone new whose claims match no mapping becomes a Staff user.
  • Cardholders do not sign in, with or without single sign-on.
  • “Single sign-on didn’t complete.” The sign-in page stays vague on purpose. The reason, such as an email domain that is not on the connection, an unverified email, or a rejected secret, is recorded in your organisation’s audit log.
  • The Test button passes but sign-in fails. Test checks the discovery URL only. The client ID and secret are checked by a real sign-in, so look for a secret pasted into the client ID field, or an expired secret.
  • “Try again” after a long pause. A sign-in must finish within ten minutes of starting.
  • Entra sends no email. Add the optional email claim (step 4 above). CardOffice will not guess an email from other claims.

© 2026 Secure ID Ltd. All rights reserved.Documentation licence and terms