Skip to content

Your team's own sign-in (SSO and SCIM)

A team on a wisp Grid can sign its people in with its own identity provider instead of GitHub or Google, on wisp Cloud or a grid you run. One of the team’s owners sets it up, on the grid or from the terminal.

The quick way: the team’s page

On your grid: Teams → your team → Sign-in (SSO) → Set up SSO. Four steps, and nothing changes for anyone until the last one:

  1. Provider: Okta, Microsoft Entra ID, Google Workspace, Keycloak, Auth0, JumpCloud, any OIDC provider, or any SAML 2.0 provider.
  2. Connect: where to click at your provider, the URLs to paste there (each with Copy), and its client ID and secret (or, for SAML, its metadata URL). Save and test sign-in sends you to your provider and back: the page shows who came back and with which groups. It signs nobody in and changes nobody’s role.
  3. Who gets in: your domains, a role for each group, what everyone else gets, required sign-in, SCIM. It shows the role your test sign-in would get.
  4. Turn on: a summary, and the sign-in link to send your people.

Edit later goes through the same steps (a changed connection is tested again); Turn off goes back to the grid’s ways. The rest of this guide is the same thing from the terminal, and what each setting does.

  • SSO (OpenID Connect or SAML 2.0). Okta, Microsoft Entra ID, Google Workspace, Keycloak, Auth0, OneLogin, JumpCloud, GitLab, ADFS, PingFederate: anything that speaks OIDC or SAML. People open https://grid.example.com/sso/acme, sign in at your provider, and land in the team.
  • Who gets in, as what. Only addresses at your domains; a role (admin, member, viewer) for each of your groups; a default role, or none to let in only people a group names.
  • Required. Members open the hub, its API and the team’s shares only while their SSO sign-in is fresh (8 hours, a week: you pick).
  • SCIM 2.0. Your provider adds people, takes them out and moves them between groups, and the grid acts at once: someone turned off at Okta is out of the team and signed out within seconds.

1. Make an app at your provider

Make an OIDC web app (authorization code flow) and give it the redirect URI for your team. wisp team sso acme prints it; it’s always:

https://grid.example.com/auth/sso%3Aacme/callback
Provider Where Issuer
Okta Applications → Create App Integration → OIDC, Web Application https://<org>.okta.com
Microsoft Entra ID App registrations → New registration (Web) https://login.microsoftonline.com/<tenant-id>/v2.0
Google Workspace Cloud console → Credentials → OAuth client ID (Web) https://accounts.google.com
Keycloak Clients → Create client (OpenID Connect, client authentication on) https://<host>/realms/<realm>
Auth0 Applications → Regular Web Application https://<tenant>.auth0.com

For roles by group, have the provider put the person’s groups in the ID token: in Okta a groups claim on the app (filter Matches regex .*), in Entra Token configuration → Add groups claim, in Keycloak a Group Membership mapper. The claim is called groups unless you name another (groupsClaim).

Or SAML

If your identity provider only offers SAML 2.0 for an app (ADFS, PingFederate, Shibboleth, or an Okta or Entra app already set up as SAML), use it instead. Give your provider:

Field (names vary) Value
Single sign-on URL / ACS URL / Reply URL https://grid.example.com/saml/acme/acs
Audience / Entity ID / Identifier https://grid.example.com/saml/acme
Name ID the person’s email address (persistent or email format)
Attributes email (the address), groups (their groups), when your provider can send them
Signing sign the assertion or the response, RSA-SHA256; leave assertion encryption off

Or give it our metadata URL, https://grid.example.com/saml/acme. Then use your provider’s metadata URL (or its XML) in sso.json:

sso.json
{
"protocol": "saml",
"idpMetadataUrl": "https://acme.okta.com/app/exk123/sso/saml/metadata",
"label": "Acme SSO",
"domains": ["acme.com"],
"groupRoles": { "wisp-admins": "admin", "engineering": "member" },
"defaultRole": "none",
"required": true
}

Microsoft Entra sends groups as object IDs under its own claim name: name the IDs in groupRoles, or set the group claim to send names (cloud-only groups). "emailAttribute" names the attribute the address is under when it isn’t email, mail or Entra’s claim. Sign-in starts at wisp (/sso/acme): starting from your provider’s app dashboard isn’t taken, because wisp can’t tie that answer to the browser that’s signing in.

2. Set it for your team

Write the settings in a file (it’s yours to keep in the team’s repo, beside the hub’s folder), with the client secret as "-" so it’s typed hidden or piped in, never kept in the file:

sso.json
{
"issuer": "https://acme.okta.com",
"clientId": "0oa1b2c3d4",
"clientSecret": "-",
"label": "Acme Okta",
"domains": ["acme.com"],
"groupRoles": { "wisp-admins": "admin", "engineering": "member", "support": "viewer" },
"defaultRole": "none",
"required": true,
"sessionHours": 12,
"scim": false
}
Terminal window
wisp team sso acme set sso.json # asks for the client secret
pbpaste | wisp team sso acme set sso.json # or pipe it in
wisp team sso acme # what's set, the redirect URI, the sign-in link

Change anything later with the same file: without clientSecret, the one on the grid is kept. wisp team sso acme off takes it out, and people sign in the grid’s ways again.

Setting What it does
issuer, clientId, clientSecret your provider’s app; the secret is sealed on the grid with its master key and never shown again
domains only verified addresses at these domains get in (none: anyone your provider signs in)
groupRoles a group’s name → admin, member or viewer; someone in several gets the highest
defaultRole for someone no group names: member (the default), viewer, admin, or none to refuse them
required members count only while their SSO sign-in is younger than sessionHours (1 to 720, 168 by default)
scim only people your provider pushed through SCIM get in (step 4)

Then send people the sign-in link, https://grid.example.com/sso/acme, or have them type acme under Your team signs in with its own SSO? on the grid’s sign-in page.

  • Someone new gets an account the team manages: SCIM can turn it off.
  • Someone who already has an account on the grid (they signed in with GitHub, say) connects it once: signed in, they open https://grid.example.com/sso/acme?link=1. The grid never joins two accounts by email address, because a team’s provider vouches for its own people, not for the rest of the grid.
  • Each sign-in puts their role in step with their groups. Owners are never changed by SSO or SCIM, and they open the team even when SSO is required, so a broken provider can’t lock you out of fixing it. Keep owners few.

3. Require it

With "required": true, members, admins and viewers reach the hub, its API and the team’s shares only while their SSO sign-in is younger than sessionHours. After that, the hub answers with the link to sign in again. Shorter is safer; 8 to 12 hours means once a working day.

4. Add and remove people with SCIM

Make a token, give it and the base URL to your provider, then turn scim on:

Terminal window
wisp team scim acme token # the token, shown once, and the base URL
Provider Where URL Auth
Okta the app → General → Provisioning: SCIM; then Provisioning → To App: Create, Update, Deactivate https://grid.example.com/scim/v2/acme HTTP Header (Bearer)
Microsoft Entra ID Enterprise applications → the app → Provisioning → Automatic https://grid.example.com/scim/v2/acme Secret Token
OneLogin, JumpCloud SCIM provisioning on the app the same Bearer token

Push the groups you named in groupRoles too (Okta Push Groups, Entra Provisioning → Mappings → Groups). Then set "scim": true in sso.json and wisp team sso acme set sso.json again.

What the grid does with what it’s told:

Your provider says The grid
a person is assigned they may sign in through SSO (until then, they’re refused)
a person is moved between groups their role follows at once
a person is deactivated, unassigned or deleted out of the team at once; an account the team manages is turned off, signed out everywhere (browsers, the desktop and phone apps, API keys) and its box stopped
a person is active again their account is back on; they sign in again

wisp team scim acme tokens lists the live tokens, wisp team scim acme revoke <id> revokes one (five at most).

From your agent

An agent reads where SSO stands through wisp’s MCP tools (grid-client.hub with op: sso or scim-tokens), and can revoke a SCIM token. Setting SSO and making a SCIM token carry secrets, so they’re a person’s, from the terminal.

On your own grid

Teams’ own sign-in is off on a grid until its operator turns it on, in grid.json:

"auth": { "teamSso": true }

wisp Cloud has it on. On a grid where auth.allow limits who comes in, a team’s SSO lets people in only when the team is named there ("allow": { "teams": ["acme"] }): a team’s provider speaks for that team, never for the grid. See Run your own Grid for the grid’s own sign-in, and offboarding people grid-wide.