Skip to main content

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 TenantSettingsWrite permission, 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​

  1. You register Blokkio as an application in your IdP and enter its issuer URL, client ID and client secret in Settings → Single sign-on.
  2. 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.
  3. 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: true and 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:

SettingValue
Redirect (callback) URIhttps://auth.blokkio.com/signin-oidc/<your-workspace-id>
Grant typeAuthorization code
Scopesopenid, profile, email
ClaimsMake 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:

FieldRequiredDefaultDescription
Display nameYes—Name for the provider, e.g. Acme Okta
Issuer URLYes—The IdP's issuer URL, e.g. https://acme.okta.com. Must be an absolute https URL
Client IDYes—The OIDC client ID
Client secretNo—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 membersNoContributorRole given to members created by just-in-time provisioning. Use Administrator or Contributor — choosing Viewer is rejected when you save
Enabled—OnTurn SSO on or off without deleting the configuration
Create accounts on first sign-in (just-in-time provisioning)—OnCreate a Blokkio member automatically the first time someone from a verified domain signs in
Email domainsNo—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."

  1. Copy the record with the copy button next to it. It looks like blokkio-verify=3f2a9c….
  2. In your DNS provider, add a TXT record on the domain itself (the apex, e.g. acme.com) with exactly that value.
  3. Wait for DNS to propagate (minutes to hours, depending on your provider and TTL).
  4. 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:

ProblemWhat to do
The TXT record wasn't foundCheck the value and the domain, wait for DNS to propagate, and click Verify again
Another workspace has already verified this domainA 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:

  1. If the person has signed in with this IdP before, they're signed in.
  2. 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.
  3. Otherwise, if just-in-time provisioning is on, a new member is created with the Role for new members.
  4. 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:

errorCause
email_unverifiedThe IdP didn't assert email_verified: true
domain_not_verifiedThe email's domain isn't a DNS-verified domain of this workspace
not_provisionedNo matching member and just-in-time provisioning is off
account_disabledThe Blokkio account is disabled
federation_not_configuredSSO isn't configured or enabled for this workspace
external_failedThe 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):

MethodPathDescription
GET/tenants/{tenantId}/identity-providerRead the configuration (404 if none)
POST/tenants/{tenantId}/identity-providerCreate it
PUT/tenants/{tenantId}/identity-providerUpdate it (omit clientSecret to keep the stored secret)
DELETE/tenants/{tenantId}/identity-providerRemove it
POST/tenants/{tenantId}/identity-provider/domains/{domain}/verifyCheck 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:

ResponseMeaning
200 { "status": "verified", "domain": … }The domain is now trusted for SSO
409 record_not_foundThe TXT record wasn't found yet
409 domain_claimedAnother workspace has already verified this domain
404The domain isn't in the provider's domains list
403 forbidden / 403 federation_not_entitledYou're not an Administrator / the workspace's plan doesn't include SSO