Supported protocols
Tightknit supports the following industry-standard SSO protocols:- OIDC (OpenID Connect) - Modern authentication protocol built on OAuth 2.0
- SAML 2.0 - Enterprise-grade XML-based authentication standard
- Token-based JWT - Custom integrations for IdP-initiated flows
Supported authentication flows
SP-initiated flow
Users start at your Tightknit community and are redirected to your identity provider to authenticate. After successful authentication, they are returned to Tightknit and logged in automatically.IdP-initiated flow
Users start at your identity provider portal and can access your Tightknit community directly from there. They land on Tightknit already authenticated without needing to sign in again.Supported identity providers
Tightknit works with major enterprise identity providers, including:- Google Workspace
- Microsoft Azure AD / Entra ID
- Okta
- Auth0
- OneLogin
- And other OIDC/SAML-compliant providers
Where to configure this
In Studio, go to Site > Authentication and use the Single Sign-On section to add and manage providers.Set up an OIDC or SAML provider
You can configure up to five providers from Studio. A new provider starts disabled so you can review the configuration before making it available to members.Open authentication settings
Choose the connection type
Configure your identity provider
Enter the provider configuration
\n characters is rejected. Configure your identity provider to sign the SAML assertion itself: a response whose outer message is signed but whose assertion is not is rejected.Create and test the provider
Automatically provision accounts
By default, SSO only signs in people who are already members of your community. When you turn on Automatically provision accounts for an OIDC or SAML provider, a first sign-in with no matching member creates one instead. If the provider has an Email domain, only addresses on that domain are created. For OIDC providers, Tightknit also requires the provider to mark the member’s email address as verified. See the troubleshooting entry if members see a message about an unverified email.Set up a custom token (JWT) provider
Use a custom token provider when your own application signs members in and should send them straight to your community, for example from a Community link inside your product. Your application signs a short-lived JSON Web Token (JWT) for the member and posts it to Tightknit, which verifies it and signs the member in. For standard identity providers such as Okta or Microsoft Entra ID, use OIDC or SAML instead.Choose the connection type
Send tokens to the callback URL
token. Each token must:- be signed with RS256 or ES256
- carry
issandaudclaims that exactly match the issuer and audience you enter in the next step - carry the member’s
email,iat,exp, and a uniquejti - carry a
subthat identifies the member: unique to them, never reused for anyone else, and the same for the life of their account. Tightknit recognizes returning members by it (see How Tightknit recognizes returning members). - be posted within 60 seconds of its
iat, so sign it when the member clicks rather than when the page loads. Each token can be used once.
Enter the verification details
jwks_uri your issuer’s OpenID configuration lists, or, if it publishes none, a URL under your issuer URL such as https://app.acme.com/.well-known/jwks.json for the issuer https://app.acme.com/. You rotate keys inside the JWKS without editing the provider. It is also the only key you can change yourself once members have signed in through the provider. A Public key must be the PEM-encoded public half of your signing key, at least 2048 bits for RS256. Once members have signed in through the provider, only Tightknit support can replace it. Never paste a private key.Create and test the provider
redirect_uri: the token callback URL, including the page the member started from. Post the token here rather than to the plain callback URL, so members land back where they were.client: alwaystightknit.
How Tightknit recognizes returning members
Tightknit matches a member’s first sign-in through a custom token provider to their community profile by email. Tightknit then records the token’ssub against their account, and later sign-ins find them by it:
- A member whose email address changes in your application keeps signing in to the same account.
- Connecting Google, GitHub, or Slack under Settings > Account doesn’t stop them signing in with your provider.
- Members see your provider under Settings > Account > Sign-in methods. Your community manages it, so they can’t disconnect it there.
sub decides whose account a sign-in reaches, never give one person’s sub to another. If your tokens identify members with a different claim, or carry no stable one, contact Tightknit support: members are then matched by email on every sign-in.
Hide a custom token provider from the community site login page
Custom token providers have a Show on community site login page setting in the Configuration step. When it is on, the community site login page shows a sign-in button that takes members to your login URL. Turn it off if members only ever start from your application. They can still sign in from there either way, as long as the provider is enabled. The setting needs a login URL. Without one, the provider is always hidden and members can only sign in from your application. Hidden providers are labeled Hidden from the community site login page in the Single Sign-On section. OIDC and SAML providers are always shown on the community site login page while enabled, because members start those sign-ins from their button. To stop sign-ins through one, disable it instead.Reviewing a provider’s connection details
Each provider row you can manage in the Single Sign-On section has an info button that reopens the setup wizard on the Connect step. Use it to copy the callback URL, ACS URL, entity ID, or token callback URL again when your identity provider or application needs them, without changing anything on the provider. Providers the Tightknit team set up with more than one configuration do not have this button; contact support for their connection details.Editing a live provider
You can edit providers you set up yourself while they are enabled, using the same rows that offer the info button above. Because the change applies immediately, Studio asks you to confirm before saving: select Save live changes to apply, or cancel to keep the current configuration. A configuration that no longer matches your identity provider interrupts member sign-ins until you correct it, so review each step of the wizard before confirming. When editing a SAML provider, the stored signing certificate is masked. Leave the IdP signing certificate field blank to keep the current certificate, or paste a new one to replace it. Custom token providers work the same way for a stored public key. After members have signed in through a provider, you can no longer change its identity settings, such as the issuer, audience, client ID, or the claim a custom token provider identifies members by. Their accounts are linked to the provider by these settings, so create a new provider instead. A custom token provider’s signing key is the one exception. You can switch it to a JWKS URL your issuer vouches for, as described in Switch a custom token provider to a JWKS URL, and Tightknit support can rotate it for you. For some custom token providers that Tightknit set up for you, only Tightknit support can change the identity settings, signing key included.Switch a custom token provider to a JWKS URL
A custom token provider that verifies tokens with a stored public key can move to a JWKS URL without interrupting sign-ins, even after members have signed in through it. From then on you rotate keys inside your JWKS, with no change in Tightknit. The JWKS must meet these requirements. When the provider is enabled or members have signed in through it, Tightknit fetches the JWKS and refuses to save until it does:- It publishes every key your app signs tokens with today, marked
"use": "sig"and"alg": "RS256"or"ES256"to match the provider. When you replace one JWKS URL with another, the new JWKS must publish every signing key the current one does, under the samekid. Tightknit can’t tell which one your issuer signs with. - It uses HTTPS, resolves to a public address, and answers directly with
200 OKrather than a redirect. - Once members have signed in through the provider, your issuer must vouch for it. If your issuer publishes an OpenID configuration at
<issuer>/.well-known/openid-configuration, the JWKS URL must be thejwks_uriit lists. Otherwise the JWKS must sit under your issuer URL itself: on the same host, and under the issuer’s path if it has one (https://app.acme.com/.well-known/jwks.jsonfor the issuerhttps://app.acme.com/). The issuer must be anhttps://URL. Only whoever controls your issuer URL can publish there, which is what keeps a changed key trustworthy. To host the JWKS anywhere else, publish an OpenID configuration at your issuer that names it.
Publish your current key in a JWKS
kid header, give the key the same kid, so Tightknit finds it without trying each key.Enter the JWKS URL
Confirm sign-in still works
SSO provider signing key updated under Authentication.Rotate inside your JWKS
- A new key works within about 30 seconds. When a token is signed with a key Tightknit doesn’t have yet, it fetches your JWKS again, at most once every 30 seconds, whether or not the token carries a
kid. - A removed key can still verify sign-ins for up to 5 minutes, or for as long as your JWKS can’t be reached (at most 24 hours). If a key is compromised, also disable the provider in Site > Authentication, which stops its sign-ins immediately. Enable it again once your JWKS answers without the key, and at least 5 minutes after you removed it.
- If your JWKS is unreachable or answers with a server error (
5xx) or429 Too Many Requests, sign-ins keep working with the last keys Tightknit fetched for up to 24 hours. After that, they fail until your JWKS answers again. - If your JWKS answers anything else, such as
404 Not Foundor a response that isn’t a key set, sign-ins fail at once until it serves a key set again.
SSO provider signing key updated. When the provider is enabled or members have signed in through it, Tightknit also posts an SSO signing key changed alert to your Tightknit Hub channel for every change, including one Tightknit support makes. You can’t turn this alert off.
Connecting SSO to an existing account
When a member signs in with SSO using an email address that already has a Tightknit account created another way (an email sign-in code, or a Google, GitHub, or Slack login), Tightknit does not merge the two automatically. Trusting the identity provider’s word alone would let a misconfigured or compromised IdP claim someone else’s account. Instead, the member is sent a confirmation email:- They sign in with your identity provider as usual.
- The login page tells them to check their email, and Tightknit emails the asserted address a confirmation link naming your community and the identity provider.
- Opening the link shows a confirmation page. Nothing changes until they select Connect. Simply opening the email is not enough.
- After confirming, they return to the login page and sign in with SSO again, which now succeeds.
SSO link confirmation sent, SSO link confirmed, SSO link expired, and SSO link rate-limited.
Email domain aliases
Some identity providers and applications send a member’s address on a different domain from the one on their community profile, such as a security or legacy domain:[email protected] instead of [email protected]. An email domain alias tells Tightknit to sign that member in to their profile on the primary domain.
Add an alias
Edit the provider
Enter the alias
Check the preview
- how many people couldn’t sign in through this provider with an alias-domain address in the last 30 days, and how many of them the alias would match to an active profile on the primary domain, for example 28 people will be able to sign in
- how many profiles already use alias-domain addresses. An exact address match always wins, so those people are never matched to a primary-domain profile.
- a note when no members use the primary domain, since the alias couldn’t match anyone
Save the provider
- is a public email domain such as
gmail.com, where different people share names - is the same as its primary domain
- is also the primary domain of another alias
- is listed twice
Email domain aliases: acme-sec.com → acme.com. Every change is recorded in Workspace Settings > Audit under Authentication as SSO email domain aliases updated.
Low-match warning
When at least five people couldn’t sign in with an alias-domain address and fewer than half of them have a matching profile on the primary domain, Studio warns that the domain may not be an alias of the primary domain. The addresses probably belong to different people who share names, such as a customer’s domain. To save the alias anyway, select Save this alias anyway under the warning. In a very large community, an alias domain can have more refused sign-ins than the preview reads. Studio can’t tell the match rate for the rest, so it asks you to confirm that alias the same way. The warning catches mistakes; it isn’t what keeps members safe. Every member matched through an alias still confirms by email at their primary address before signing in.How members are matched
- Tightknit first looks for a profile with the exact address the provider sent. An exact match always wins, so a member whose profile is on the alias domain keeps signing in to that profile.
- If there isn’t one, Tightknit looks for the same name on the primary domain:
[email protected]matches[email protected]. If neither profile exists, the sign-in fails as it would without the alias. - The first time a member is matched this way, Tightknit emails a confirmation link to the address on their profile, and the login page asks them to check their email. After they confirm, they sign in directly. The confirmation works like Connecting SSO to an existing account.
Change or remove an alias
You can’t edit a saved alias in place. To change one, remove it and add the new pair. Studio asks you to confirm before it removes a saved alias, because once you save:- Sign-ins with an address on the removed alias domain only match profiles on that domain.
- Members who confirmed through the alias can no longer use it to sign in. If you add the alias back, they confirm by email again.
If your plan no longer includes the add-on
Saved aliases are paused. Studio shows them with a Paused notice, and the provider’s row ends in(paused). While aliases are paused:
- New sign-ins don’t use them. A member who hasn’t confirmed through an alias is only matched by the exact address the provider sent.
- Members who already confirmed through an alias keep signing in.
- You can remove aliases and edit the provider’s other settings, but you can’t add aliases.
Troubleshooting
The identity provider rejects the callback URL
The identity provider rejects the callback URL
The provider does not appear on the community site login page
The provider does not appear on the community site login page
Authentication succeeds but access is denied
Authentication succeeds but access is denied
The login page says the identity provider hasn't verified the member's email
The login page says the identity provider hasn't verified the member's email
email_verified: true. Otherwise the sign-in is refused, and the Authentication audit log records the error code sso_email_not_verified.To fix it, have your identity provider send email_verified: true for members whose address it trusts. A member who signed up with a password can verify their address with the provider. If one identity provider sits in front of another, such as Auth0 federating to your organization’s Entra ID, the front provider may mark those addresses as unverified. In Auth0, add an Action that marks addresses from your enterprise connections as verified.Members who have already signed in through the provider aren’t affected. SAML providers aren’t affected either, because SAML has no standard verification attribute.OIDC authentication fails
OIDC authentication fails
openid, profile, and email scopes. Review the Authentication audit log for the recorded provider error.SAML authentication fails
SAML authentication fails
email or NameID, the assertion is signed when required, and the IdP metadata or certificate is current.Studio refuses a JWKS URL for a custom token provider
Studio refuses a JWKS URL for a custom token provider
200 OK without redirecting. Once members have signed in through the provider, also confirm it is the jwks_uri your issuer’s OpenID configuration lists or, if your issuer publishes none, that it sits under your issuer URL. See Switch a custom token provider to a JWKS URL.Custom token sign-in fails
Custom token sign-in fails
iss and aud exactly match the provider’s issuer and audience, it is signed with the configured algorithm and key, it has not expired, and it carries a jti that has not been used before. Review the Authentication audit log for the recorded reason.The identity provider blocks the member before they reach Tightknit
The identity provider blocks the member before they reach Tightknit
sso_access_denied. The cause and the fix are the same.The most common cause is an application that only admits assigned users. In Microsoft Entra ID the error is AADSTS50105, and the enterprise application has Assignment required turned on. To fix it, open Enterprise applications, select the application that signs members in to Tightknit, go to Users and groups, and assign the member or a group they belong to. Okta and other providers have the same per-application assignment. The error page usually shows a request ID and a correlation ID, which your identity provider admin can use to find the attempt in the provider’s sign-in logs.If one identity provider sits in front of another, such as Auth0 federating to your organization’s Entra ID, make the assignment in the provider that showed the error.Until the assignment is fixed, the member can sign in with any other method your community enables, such as Slack. If they already have a Tightknit account, their first successful SSO sign-in sends a one-time confirmation email. See Connecting SSO to an existing account.
