Single sign-on (OIDC)
Single sign-on (SSO) lets members of your workspace sign in through your company's identity provider (IdP) — Okta, Microsoft Entra ID, Google Workspace, Auth0, Keycloak or any other provider that speaks OpenID Connect (OIDC).
:::info Availability
- SSO is included on the largest plan (see Plans and limits). On other plans Settings → Single sign-on explains that single sign-on needs a plan upgrade and links to the plans.
- Only Administrators can configure it (the
TenantSettingsWritepermission, see Roles). The Single sign-on entry in Settings is hidden for other roles. - Only OIDC is supported. SAML is not available. :::
How it works
- You register Blokkio as an application in your IdP and enter its issuer URL, client ID and client secret in Settings → Single sign-on.
- You list the email domains your IdP is authoritative for (e.g.
acme.com) and prove you own each one with a DNS TXT record. - Members sign in at the workspace's SSO start URL. Blokkio sends them to your IdP, receives the signed-in identity and creates a Blokkio session for your workspace only.
Two protections are built in:
- Tenant binding. A sign-in is only accepted if the identity really came from the IdP configured for this workspace (the token issuer must match your configured issuer URL). An identity from another workspace's IdP, or from Google / GitHub social sign-in, can't be replayed against your workspace's SSO.
- Verified domains. Blokkio only matches an IdP identity to a member by email — or creates a new member — when
the IdP asserts
email_verified: trueand the email's domain is one you have verified via DNS. This stops a misconfigured or hostile IdP from claiming addresses at domains it doesn't control.
Step 1 — register Blokkio in your identity provider
Create a "Web application" / confidential OIDC client in your IdP:
| Setting | Value |
|---|---|
| Redirect (callback) URI | https://auth.blokkio.com/signin-oidc/<your-workspace-id> |
| Grant type | Authorization code |
| Scopes | openid, profile, email |
| Claims | Make sure email and email_verified are included in the ID token / userinfo |
Your workspace id is the tenantId shown by GET https://auth.blokkio.com/account when you're signed in. Note the
issuer URL, client ID and client secret.
Step 2 — set up SSO in Blokkio
Go to Settings → Single sign-on and fill in the Identity provider (OIDC) form:
| Field | Required | Default | Description |
|---|---|---|---|
| Display name | Yes | — | Name for the provider, e.g. Acme Okta |
| Issuer URL | Yes | — | The IdP's issuer URL, e.g. https://acme.okta.com. Must be an absolute https URL |
| Client ID | Yes | — | The OIDC client ID |
| Client secret | No | — | Kept in Blokkio's secret store and never shown again. Once saved, the field reads "Stored — leave empty to keep"; type a new value only to replace it |
| Role for new members | No | Contributor | Role given to members created by just-in-time provisioning. Use Administrator or Contributor — choosing Viewer is rejected when you save |
| Enabled | — | On | Turn SSO on or off without deleting the configuration |
| Create accounts on first sign-in (just-in-time provisioning) | — | On | Create a Blokkio member automatically the first time someone from a verified domain signs in |
| Email domains | No | — | One per line, e.g. acme.com. Sign-ins from these domains go to your IdP once the domain is verified |
Click Set up SSO (or Save changes later). A workspace has one identity provider. Remove SSO deletes the configuration after a confirmation: members have to sign in with a password or social login again, and your verified domains are released.
Changes are recorded as tenant.identity_provider_updated in the audit log.
Step 3 — verify your domains (DNS TXT)
After you save, the Domain verification section lists every domain with the TXT record to publish. Domains you typed but haven't saved yet show "Save changes to get a verification record."
- Copy the record with the copy button next to it. It looks like
blokkio-verify=3f2a9c…. - In your DNS provider, add a TXT record on the domain itself (the apex, e.g.
acme.com) with exactly that value. - Wait for DNS to propagate (minutes to hours, depending on your provider and TTL).
- Click Verify on the domain's row. When the record is found, the row shows a Verified badge.
If verification fails, the message tells you why:
| Problem | What to do |
|---|---|
| The TXT record wasn't found | Check the value and the domain, wait for DNS to propagate, and click Verify again |
| Another workspace has already verified this domain | A domain can belong to one workspace only. Contact Blokkio support if you own it |
You can leave the TXT record in place; once verified the domain stays verified. Each verification is recorded as
tenant.identity_provider_domain_verified in the audit log.
Step 4 — sign in with SSO
Send members to the workspace's start URL:
https://auth.blokkio.com/auth/federated/<your-workspace-id>/start?returnUrl=https://app.blokkio.com/
Blokkio redirects to your IdP, then back to Blokkio, and finally to returnUrl. What happens on the way back:
- If the person has signed in with this IdP before, they're signed in.
- Otherwise, if a workspace member has the same (verified-domain, IdP-verified) email, the IdP identity is linked to that member and they're signed in.
- Otherwise, if just-in-time provisioning is on, a new member is created with the Role for new members.
- Otherwise sign-in is refused with
not_provisioned— invite the person first (see Members and invites).
GET https://auth.blokkio.com/auth/discover?email=ana@acme.com tells a client whether an address should use SSO
({ "method": "federated", "startUrl": "/auth/federated/…/start" }) or a password ({ "method": "password" }).
Errors
If SSO sign-in fails, Blokkio redirects back to returnUrl with an error query parameter:
error | Cause |
|---|---|
email_unverified | The IdP didn't assert email_verified: true |
domain_not_verified | The email's domain isn't a DNS-verified domain of this workspace |
not_provisioned | No matching member and just-in-time provisioning is off |
account_disabled | The Blokkio account is disabled |
federation_not_configured | SSO isn't configured or enabled for this workspace |
external_failed | The IdP round-trip failed, or the identity didn't come from this workspace's IdP |
MFA and SSO
Members who sign in through SSO are not asked for Blokkio's own two-factor code, even if the workspace requires MFA — enforce MFA in your identity provider instead.
API
The settings page uses these Auth API endpoints, which you can also call with a signed-in access token (Administrator, on a plan that includes SSO):
| Method | Path | Description |
|---|---|---|
GET | /tenants/{tenantId}/identity-provider | Read the configuration (404 if none) |
POST | /tenants/{tenantId}/identity-provider | Create it |
PUT | /tenants/{tenantId}/identity-provider | Update it (omit clientSecret to keep the stored secret) |
DELETE | /tenants/{tenantId}/identity-provider | Remove it |
POST | /tenants/{tenantId}/identity-provider/domains/{domain}/verify | Check a domain's TXT record |
curl -X POST "https://auth.blokkio.com/tenants/$TENANT_ID/identity-provider" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"protocol": 0,
"displayName": "Acme Okta",
"enabled": true,
"jitProvisioningEnabled": true,
"defaultRoleId": 2,
"authority": "https://acme.okta.com",
"clientId": "0oa1b2c3d4",
"clientSecret": "…",
"domains": ["acme.com"]
}'
protocol must be 0 (OIDC); SAML is refused with 501 Not Implemented. defaultRoleId is 1 (Administrator) or
2 (Contributor, the default). The response never contains the client secret (only hasClientSecret) and lists each
domain under domainDetails:
{
"domainDetails": [
{ "domain": "acme.com", "verified": false, "verifiedAt": null, "verificationRecord": "blokkio-verify=3f2a9c…" }
]
}
verificationRecord is null once the domain is verified. The verify endpoint answers:
| Response | Meaning |
|---|---|
200 { "status": "verified", "domain": … } | The domain is now trusted for SSO |
409 record_not_found | The TXT record wasn't found yet |
409 domain_claimed | Another workspace has already verified this domain |
404 | The domain isn't in the provider's domains list |
403 forbidden / 403 federation_not_entitled | You're not an Administrator / the workspace's plan doesn't include SSO |