Skip to main content

Single Sign-On and Provisioning

Overview​

Your people can sign in to Haltless with your company's identity provider instead of a Haltless password, and the identity provider can manage who has an account:

  • Single sign-on over SAML 2.0 or OpenID Connect. Anyone whose email is on your company's domain is sent to your provider to sign in. Okta and Microsoft Entra ID are covered step by step below; any SAML 2.0 or OpenID Connect provider works the same way.
  • Provisioning over SCIM 2.0. The provider creates an account when someone joins, keeps their name and details current, and deactivates them when they leave, so a leaver is signed out of Haltless as soon as they are removed in the provider.

Single sign-on signs in only people who already have an account: one an administrator added in Haltless, or one the provider created over SCIM. It never creates accounts on its own.

Everything here is in the portal under Settings → SSO, and needs an administrator. Each company has one identity provider.

1. Connect the identity provider​

In Settings → SSO, choose Set up SSO, then the protocol. SAML 2.0 is the usual choice for Okta and Microsoft Entra ID.

SAML 2.0​

The form shows three values to give your provider, each with a copy button. They are specific to your company:

Haltless showsOkta calls itMicrosoft Entra ID calls it
Entity ID (audience)Audience URI (SP Entity ID)Identifier (Entity ID)
Assertion consumer service URLSingle sign-on URLReply URL (Assertion Consumer Service URL)
Haltless metadata URL(not needed)Can be uploaded as the service provider's metadata

They look like this, with your company's id:

Entity ID https://api.haltless.io/api/v1/auth/sso/saml/<company id>/metadata
ACS URL https://api.haltless.io/api/v1/auth/sso/saml/<company id>/acs

Microsoft Entra ID​

  1. In the Microsoft Entra admin center, go to Enterprise applications → New application → Create your own application, name it (for example "Haltless") and choose Integrate any other application you don't find in the gallery.
  2. Open Single sign-on and choose SAML.
  3. Under Basic SAML Configuration, set Identifier (Entity ID) and Reply URL to the two values Haltless shows. Leave Sign on URL and Relay State empty.
  4. Under Attributes & Claims, keep the defaults. Haltless reads the person's address from the emailaddress claim (user.mail), so make sure that is the address they have in Haltless.
  5. Under SAML Certificates, copy the App Federation Metadata Url.
  6. Assign the users or groups who should be able to sign in, under Users and groups.

Okta​

  1. In the Okta Admin Console, go to Applications → Create App Integration and choose SAML 2.0.
  2. Set Single sign-on URL to the assertion consumer service URL (leave Use this for Recipient URL and Destination URL ticked) and Audience URI (SP Entity ID) to the entity ID.
  3. Set Name ID format to EmailAddress and Application username to Email. You can also add an attribute statement named email with the value user.email.
  4. Finish, then on the app's Sign On tab copy the Metadata URL.
  5. Assign the people or groups who should be able to sign in.

Back in Haltless​

Paste the provider's metadata URL into Your provider's metadata and choose Read: the identity provider's entity ID, its sign-in URL and its signing certificate are filled in. You can paste the metadata XML instead of its address, or fill the three fields by hand. Give the provider a name (it is shown on the sign-in button), enter your email domain, and save.

Haltless needs:

  • Signed assertions, or signed responses. Both Okta and Entra ID sign with RSA-SHA256 by default. SHA-1 signatures are refused.
  • Unencrypted assertions. Leave assertion encryption off; the connection is HTTPS end to end.
  • The person's email in the emailaddress, email or mail attribute, or as the NameID.

OpenID Connect​

Create an OpenID Connect web app in your provider, register the Redirect URI Haltless shows, and enter the provider's Issuer URL, Client ID and Client Secret. Haltless discovers the provider's endpoints from the issuer, uses PKCE, and accepts only an ID token whose email the provider has verified.

2. Prove you own the domain​

Sign-ins for your domain are sent to your provider only once you have proved the domain is yours. After saving, the SSO tab shows a DNS TXT record:

Name _haltless-verification.acme.com
Value haltless-verification=<token>

Publish it at your DNS host, then choose Verify domain. DNS changes can take a few minutes. A domain another company has already verified cannot be used. Changing the domain later starts verification again.

3. Sign in​

On the Haltless login page, entering an address on your domain shows Continue with your provider. Signing in works from the provider's side too: the Haltless tile in Okta's dashboard or in Microsoft My Apps opens Haltless and completes the sign-in, without asking for the email.

What the login page says when a sign-in does not complete:

MessageUsual cause
There is no account for this address in your organizationThe person has no Haltless account. Add them, or turn on provisioning.
The sign-in link expiredMore than 10 minutes passed at the provider, or the browser went back. Start again.
We couldn't reach your identity providerFor SAML: the certificate in Haltless is not the one the provider signs with, the entity ID or ACS URL differs between the two sides, or the assertion is encrypted.
Sign-in via your identity provider was cancelled or failedThe address is not on your verified domain, or SSO was switched off.

Signing certificates​

A SAML provider's signing certificate expires (Entra ID's after three years by default). The SSO tab warns 30 days before. To move to a new certificate without stopping sign-ins, add the new one next to the current one: paste both into Signing certificate, up to three at a time, then remove the old one once the provider has switched over. An expired certificate cannot be saved.

Signing work orders​

Signing off a work order asks for the signer's identity again. A person who signs in with SSO is sent to the provider, which asks them to sign in again there (SAML ForceAuthn, or OpenID Connect prompt=login), and the signature is recorded once they have. See Compliance.

4. Turn on provisioning (SCIM)​

Under Provisioning (SCIM) on the same tab, choose the Role for new people and Turn on provisioning. Haltless shows the SCIM base URL and a token:

SCIM base URL https://api.haltless.io/api/v1/scim/v2
Token hlt_scim_…

Copy the token now: it is shown once. If it is lost, choose New token; the old one stops working at once.

Microsoft Entra ID​

  1. In the Haltless enterprise application, open Provisioning and set Provisioning Mode to Automatic.
  2. Under Admin Credentials, set Tenant URL to the SCIM base URL and Secret Token to the token, then Test Connection.
  3. Under Mappings, turn Provision Microsoft Entra ID Groups off. Keep the user mapping.
  4. Set Provisioning Status to On and save. Entra ID provisions the users and groups assigned to the application, about every 40 minutes.

Okta​

  1. On the Haltless app's General tab, edit App Settings and tick SCIM provisioning.
  2. On the Provisioning tab, under Integration, set SCIM connector base URL to the SCIM base URL, Unique identifier field for users to userName, and tick Push New Users and Push Profile Updates. Set Authentication Mode to HTTP Header and paste the token as the bearer token. Test Connector Configuration, then save.
  3. Under To App, enable Create Users, Update User Attributes and Deactivate Users.

What the provider does​

In the providerIn Haltless
A person is assigned to the appAn account is created with the role you chose. It has no password: the person signs in with SSO.
An account already exists for that personThe provider finds it by its user name (the email) and takes it over, rather than creating a second one.
Their name, email, job title, phone, department or employee number changesThe account is updated.
They are unassigned, or deactivatedThe account is deactivated and signed out on its next request. Its history stays.
They are deletedThe account is deactivated and hidden from the provider. If the provider creates the same person again, the old account comes back.

A few rules keep the provider's token from being worth more than the job needs:

  • No administrators. People the provider creates start with the role you chose, which can never be an administrator role. Promote people in Haltless; the provider never changes roles.
  • No address changes for password accounts. The provider cannot change the email of an account that still signs in with a Haltless password.
  • People only. Groups are not provisioned, and service accounts are invisible to the provider.

Accounts the provider manages are marked Provisioned in Settings → Users. Every change the provider makes is in the audit log, with "via": "scim" in its details.

Microsoft Entra ID's user name is the user principal name, which need not be the person's email. Haltless keeps the two apart: the account's email comes from the work email Entra ID sends, and the user name is kept beside it so Entra ID finds the person again.

Turn off provisioning retires the token. People already provisioned stay as they are, and are managed in Haltless from then on.

To build your own provisioning client, see the SCIM API reference.