Single sign-on
Prove your email domain, connect Google Workspace, Microsoft Entra ID or an OpenID Connect provider such as Okta, test it and require it for everyone on the domain.
Connect Google Workspace, Microsoft Entra ID over OpenID Connect or SAML, or any OpenID Connect provider, such as Okta, and Laze signs your domain's people in through it. Single sign-on is set per email domain under Settings, Workspace, Sign-in. Owners and Admins set it up; Members see only how they sign in themselves.
Prove the domain
Under Add a domain, type the Email domain, the part after @ in your work addresses, and click Add domain. Laze shows a TXT record to publish at your DNS provider:
| Field | Value |
|---|---|
| Name | _laze-verification.<domain> |
| Value | A value Laze generates for your workspace |
Click Verify once the record is live. A domain proven by one workspace cannot be proven by another. Clicking Remove on the domain drops the connection and lets another workspace prove it.
Pick the provider
Under How people on <domain> sign in, pick one of four tabs. The provider in use is marked "(in use)".
Google Workspace
There is no app to register. Click Use Google Workspace. Laze accepts only Google accounts that belong to that domain's Google Workspace; a personal Google account under the same address is refused once the domain is required.
Microsoft Entra ID
- In the Microsoft Entra admin center, open App registrations and pick New registration.
- Name it Laze, keep Single tenant, and add a Web redirect URI with the address Laze shows under Redirect URI.
- Under Certificates & secrets, add a client secret and copy its value.
Back in Laze, fill in:
| Field | What to paste |
|---|---|
| Directory (tenant) ID | The ID on the app's Overview page, or the domain itself |
| Application (client) ID | The app's client ID |
| Client secret value | The Value column under Certificates & secrets |
Click Connect. Laze connects the issuer https://login.microsoftonline.com/<tenant>/v2.0. The shared Microsoft addresses common, organizations and consumers are refused, because any Microsoft tenant could sign in through them. Once connected, the tab shows the tenant and the app, with Replace the connection.
Laze reads the address from the preferred_username claim of the ID token, which is the user principal name. A person whose user principal name is on another domain, such as onmicrosoft.com, cannot sign in until that name is on your domain.
Microsoft Entra ID (SAML)
Use this tab when your company runs Laze as a SAML enterprise application in Entra:
- In the Microsoft Entra admin center, open Enterprise applications and pick New application.
- Pick Create your own application, name it Laze, and keep the option for an app not in the gallery.
- Open Single sign-on, pick SAML, and edit Basic SAML Configuration.
- Paste the Identifier (Entity ID) and the Reply URL (Assertion Consumer Service URL) that Laze shows, then save.
- Copy the App Federation Metadata Url from SAML Certificates and paste it into Laze, or paste the metadata XML itself.
Click Connect. Laze reads the entity id, the sign-in URL and the signing certificates from the metadata, and keeps those, never the XML. The field takes any SAML provider's metadata, not only Entra's. Laze refuses metadata that is not SAML, names no signing certificate, is Microsoft's shared tenant, or points to a plain http sign-in URL, and refuses certificates that have expired or use an RSA key under 2048 bits.
Laze accepts only assertions that are signed, addressed to its own Identifier and answer a sign-in Laze started, within 5 minutes. A sign-in started from the provider's dashboard is refused. Laze reads the address from Entra's email address claim, or from the NameID when that claim is missing. Each assertion is accepted once, and SHA-1 signatures are refused.
The signing certificates are pinned when you connect. The tab shows the date the certificate expires; after Entra rotates it, click Replace the connection and connect the same metadata URL again.
Custom OIDC
Register Laze as a web app in Okta or any OpenID Connect provider, with the Redirect URI Laze shows. Then fill in Issuer URL, Client ID and Client secret. Laze reads the issuer's discovery document and checks it:
- The issuer must answer over https on a public address, with no redirects.
- The document must name the same issuer that was pasted. A trailing slash or the discovery path is trimmed first.
- The address comes from the
emailclaim.
After saving, Laze shows the issuer and the client ID. The client secret is never shown again, on the page, in the API or in the audit log.
A connection signs in only its own domain
A connection admits only addresses exactly on its proven domain. An address on another domain, or on a subdomain, is refused: no account is made and no session starts. This holds whatever the provider puts in the token.
Test, then require
Click Test sign-in with <provider>. If the provider sends you back with an error, the page shows its reason.
The switch Require <provider> for everyone on @<domain> turns on only after you signed in through the provider in your current session. After you confirm:
- Passwords and email links stop working for addresses on the domain, and no sign-in email is sent to them.
- Their sessions that started another way end at once. The page says how many ended.
- The sign-in page sends those addresses straight to the provider.
The domain then shows Enforced. Connecting a different provider to an enforced domain lifts the requirement until you test and require again. Turning the requirement off needs no test.
Who can join
Auto-add people from verified domains decides what happens when someone with a verified address on the domain finds the workspace. On, they join as Members. Off, they ask an admin, who approves or denies the request. While the domain is required, the provider adds its people as Members and the switch is off.
From the command line
Owners and Admins run the same steps with the CLI. The client secret is read from standard input, a file or a connection in your own vault, never from a command-line flag.
laze sso claim acme.com
laze sso verify acme.com
laze sso connect acme.com --issuer https://acme.okta.com --client-id 0oa1example < secret.txt
laze sso connect-google acme.com
laze sso saml acme.com
laze sso connect-saml acme.com --metadata "<App Federation Metadata Url>"
laze sso enforce acme.com on
laze sso domainslaze sso enforce needs one of your browser sessions to have signed in through the provider. If none has, it prints the page to open and exits with code 1. An agent's key is refused by every single sign-on call.
What is recorded
Each claim, proof, connection, requirement and removal is an entry in the workspace audit log, with who made it.
Also check: SCIM provisioning, People and roles.