Single sign-on (SAML & OIDC)

Connect Okta, Entra ID, Google Workspace or another provider, verify your domain, test and require SSO.

Single sign-on (SAML & OIDC)

Let your team sign in to CostGlass with the account they already use at work, through your own identity provider.

Where in CostGlassSettings → Single sign-on
PlanScale and Enterprise
Who can do thisOwner and Admin
Time needed30 to 60 minutes (DNS changes can take a while)
In short
  • Works with SAML 2.0 and OpenID Connect (OIDC), for example Okta, Microsoft Entra ID, Google Workspace, OneLogin, Auth0 and Keycloak.
  • You prove you own your email domain with a DNS TXT record, test the sign-in once, then switch it on.
  • People must be invited first. Single sign-on lets an invited person sign in through your company login; it never creates accounts.
  • You can then require it, so passwords and Google sign-in stop working for people on your domain. One Owner keeps password sign-in as the break-glass account.
  • Changing your provider details resets the test and the requirement, so a mistake cannot lock anyone out.
Before you begin
  • Your organisation is on the Scale or Enterprise plan. On other plans the page shows an upgrade message.
  • You are an Owner or Admin of your CostGlass organisation.
  • You can create an application in your identity provider (usually an administrator role there).
  • You can add a DNS TXT record for your email domain, or know who can.
  • The people who will use it are already invited under Settings → Team.

How it works

An identity provider (IdP) is the service your company uses to sign people in, such as Okta or Microsoft Entra ID. SAML 2.0 and OpenID Connect are the two standard ways it can tell CostGlass "this person has signed in, and this is their email".

  1. You create an application for CostGlass in your IdP, using values CostGlass shows you.
  2. You give CostGlass your IdP's details.
  3. You prove you own your email domain.
  4. An Owner or Admin signs in once through the IdP as a test.
  5. You switch it on. From then on, the sign-in page recognises your domain: after someone types their work email it offers Continue with SSO.
  6. Optionally you require it for everyone on the domain.

One organisation can have one identity provider and up to 10 email domains, each proven separately. A sign-in only counts when it comes from your own organisation's provider and the email is on one of your verified domains. A different organisation's provider cannot sign in as your people, even if it names their email address.

Your region
Every region of CostGlass has its own sign-in service, so the addresses shown on the page are specific to your region. Always copy them from your own Settings → Single sign-on page.

Set it up, step by step

1
Open the page
In the left menu choose Settings, then Single sign-on (under Organisation). Five numbered cards appear, top to bottom.
Settings → Single sign-on: the five steps in order.
2
1. Tell your identity provider about CostGlass
Choose SAML 2.0 or OpenID Connect. For SAML, copy the ACS URL (Reply URL, Single sign-on URL) and the Entity ID (Audience URI, Identifier). For OIDC, copy the Redirect URI (sign-in redirect URI). Paste them into a new application in your IdP (see the next section).
3
2. Give CostGlass your provider's details
For SAML, paste the IdP metadata URL, or click Paste XML and paste the metadata file. For OIDC, enter the Issuer URL, Client ID, Client secret and Scopes (default openid email profile). Click Save and register.
4
3. Prove you own your email domain
Type your domain (for example acme.com) and click Add domain. Publish the TXT record shown at your DNS provider, then click Verify. See the next section for details.
5
4. Test, then switch on
Click Test sign-in. You are sent to your IdP, sign in with the same email you use in CostGlass, and come back to this page. When the three ticks are green click Switch on single sign-on.
6
5. Require it (optional)
Choose a Break-glass owner and click Require single sign-on. Confirm the dialog.

Creating the application in your identity provider

The exact menus differ by provider and change over time, so this is a map, not a script. Use your provider's own help if something has moved.

SAML 2.0 (Okta, Entra ID, Google Workspace and others)

  1. Create a new SAML application (sometimes called a custom or non-gallery app).
  2. Paste the CostGlass ACS URL into the field for the single sign-on, reply or assertion consumer service URL.
  3. Paste the CostGlass Entity ID into the field for the audience, identifier or SP entity ID.
  4. Set the Name ID format to email address, and make sure the person's email is sent as an attribute. CostGlass reads an attribute called email by default. If your provider sends it under another name (Microsoft Entra ID, for example, uses a long claim name), type that name into Email attribute name in CostGlass.
  5. Assign the application to the people who should use it.
  6. Copy the provider's metadata URL, or download the metadata file (XML). A metadata URL must start with https and be reachable from the internet. If your provider only gives you a file, use Paste XML.

OpenID Connect

  1. Register a web application (a confidential client using the authorization code flow).
  2. Add the CostGlass Redirect URI as an allowed sign-in redirect.
  3. Allow the scopes openid, email and profile.
  4. Collect the issuer URL (the address whose /.well-known/openid-configuration describes your provider), the client ID and the client secret.
  5. Make sure the ID token carries the person's email. CostGlass identifies people by it.

The client secret is passed straight to the sign-in service. It is never shown again, and leaving the field empty on a later save keeps the stored one.

Not yet tested with every provider
The provider steps follow each vendor's documentation. Test with one account first, before you require single sign-on for everyone.

Proving you own your email domain

This stops another company claiming your domain. For each domain CostGlass shows a TXT record:

FieldValue
Name (host)_costglass-verification.yourcompany.com
Valuecostglass-verify=<a code shown on the page>
1
Add the record
At your DNS provider add a TXT record with exactly that name and value. Use the copy buttons on the page.
2
Verify
Wait a few minutes, then click Verify next to the domain. A green Verified badge appears.
  • Public mailbox domains such as gmail.com or outlook.com are refused, because nobody can own them.
  • Only verified domains are sent to your identity provider.
  • A domain can be verified by only one organisation at a time.
  • Every day CostGlass re-checks the record. If it disappears you get 7 days before the domain stops being verified, and the page shows a warning with the date it went missing.

Test, then activate

Before you can switch it on, three things must be true: the provider is saved, at least one domain is verified, and a test sign-in has succeeded. The page shows each as a tick.

  • Test sign-in signs you in through your IdP using your own CostGlass email. That email must exist in your IdP too. Only an Owner or an Admin can pass the test.
  • You return to the page with a message that the test sign-in succeeded.
  • While the status is Not switched on, only Owners and Admins can sign in through the provider, which lets you test safely.
Status badgeMeaning
Not switched onSaved, but not active yet, or switched off because the provider details changed.
OnPeople on your verified domains can use it.
On: certificate expiringSAML only. Your provider's signing certificate expires within 30 days.
Needs attentionCostGlass could not register or read your provider. The page shows the reason.

Requiring single sign-on and the break-glass owner

When you click Require single sign-on, people with an email on a verified domain can no longer sign in with a password or Google. They must use your provider.

1
Pick a break-glass owner
In Break-glass owner choose one active Owner. This person keeps password sign-in even when it is required for everyone else, so a problem at your provider cannot lock you out.
2
Sign in through your provider yourself
The requirement can only be turned on by someone who has signed in through the provider in the current session. Use Test sign-in first. This proves it works before it applies to everyone.
3
Require it
Click Require single sign-on and confirm. Anyone currently signed in with a password will be signed out on their next request.

To stop requiring it, click Stop requiring single sign-on. To remove the provider altogether, use Remove single sign-on at the bottom (your verified domains are kept).

Saving changes resets the requirement
If you save different provider details, the test must be repeated and the requirement is switched off. This is deliberate. Do it at a quiet time and have the break-glass owner ready.
Tip
If the break-glass owner cannot sign in either, contact support. They can switch the requirement off for your organisation without touching your provider.

Messages people may see

When a sign-in is refused, the person sees a message built from one of these codes:

CodeWhat it meansWhat to do
sso_requiredYour organisation requires single sign-on and the person signed in with a password or Google.On the sign-in page, enter the work email and choose Continue with SSO.
sso_wrong_orgThe sign-in came from a different organisation's identity provider than the one registered for this person.Sign in through your own company provider. If you did, ask an administrator to check which provider is saved.
sso_domain_unverifiedThe organisation has not proved it owns the email domain (the DNS record is missing).An administrator opens Settings → Single sign-on, publishes the TXT record shown for the domain and clicks Verify.
sso_not_readySingle sign-on is saved but not switched on yet (or was switched off by a change).An administrator completes the test sign-in and switches it on. Until then only owners and admins can sign in this way, to test it.
sso_unknown_providerThe sign-in came from an identity provider CostGlass does not recognise.Use the sign-in link from CostGlass, not an old bookmark.
No organisation accessThe email is not on the organisation's user list. Single sign-on never creates accounts.An owner or admin invites the person in Settings → Team, then they sign in through the provider.

Keeping it healthy

  • Certificate expiry (SAML). Your IdP's signing certificate expires eventually. Owners are emailed 30, 14 and 3 days before. If you gave a metadata URL, CostGlass picks up a rotated certificate by itself. If you pasted XML, paste the new file. If the certificate expires, sign-in stops and the page shows Needs attention.
  • Domain checks. Daily, with a 7-day grace period (see above).
  • Audit trail. Changes to the provider, domains, switching on and the requirement are recorded in the audit log.

What single sign-on does not do

  • It does not create or remove accounts. Invite people under Settings → Team. There is no automatic provisioning (SCIM).
  • Group-to-role mapping is switched off. Roles are set only in Settings → Team, whatever groups your provider sends.
  • One provider per organisation and no single sign-out (signing out of CostGlass does not sign people out of your provider).

Frequently asked questions

The page says single sign-on is included in Scale and Enterprise. Can I try it on a lower plan?
No. The page and the server both require the Scale or Enterprise plan. See Billing & Plans.
Can I use two identity providers?
No. There is one provider per organisation, but you can prove up to 10 email domains.
Someone signs in through the provider but sees "No organisation access".
They have not been invited. Invite their email under Settings → Team first.
The Test sign-in button is greyed out.
It needs a saved provider with no error and at least one verified domain.
Does it apply to people with a different email domain, such as contractors?
Only to verified domains. Others keep signing in with a password or Google, even when single sign-on is required.

Related guides