> ## Documentation Index
> Fetch the complete documentation index at: https://docs.tightknit.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Authentication

> Choose between Public Access and Restricted Access for your community site, and configure user login independently of site privacy.

The Tightknit community site supports two access modes: **Public Access** and **Restricted Access**. Site privacy and user login are configured independently. You can enable login on a public site so users can access personalized features, or restrict access entirely so only authenticated users can view content.

Member login is available on every plan. Posting, commenting, and the other [interactivity](#enabling-interactivity) features that need a signed-in member require the Enterprise plan.

## Access control options

![Authentication settings in Studio](https://mintcdn.com/tightknit/PRBQTlj_BVoNSxUi/assets/studio/site/authentication.png?fit=max\&auto=format\&n=PRBQTlj_BVoNSxUi\&q=85\&s=a25f1c0e5cc179403e4e0bafda055cec)

Authentication settings in Studio

### Public access

* All pages are publicly accessible to anyone on the internet
* No login required to view content
* Content is discoverable by search engines
* Perfect for public communities and open knowledge sharing
* Users can optionally sign in for personalized features

### Restricted access

* All pages require authentication
* Only authenticated users can access the site
* Content is private and not indexed by search engines
* Ideal for internal teams and private communities
* Certain public-facing actions are automatically hidden (see [below](#restricted-access-behavior))

## Enabling authentication

You can configure site access and authentication settings from the [Community Site settings](https://docs.tightknit.ai/community-site/general.md) in Studio or from the Slack app home:

1. Go to the [Tightknit app home](https://docs.tightknit.ai/slack/getting-started.md) in Slack
2. Navigate to the **Community Site** module
3. Click **General** to open the site settings
4. Under **Site Access Control**, select **🔒 Restricted Access - login required**
5. Save your changes

![Site access control settings modal](https://mintcdn.com/tightknit/qPyBDcIrW7xxB2l4/assets/tightknit-site/authentication-modal.png?fit=max\&auto=format\&n=qPyBDcIrW7xxB2l4\&q=85\&s=881b0e51707814d18ff54acacf3f3a3c)

Site access control settings modal

> [!NOTE]
>
> Site privacy (public vs. restricted) is managed separately from which login methods are enabled. You can enable login providers on a public site to allow users to sign in for personalized features, without requiring login to view content.

## Supported login methods

Tightknit supports a variety of login methods for your community site. You can customize which authentication providers appear on your login page from the [community site authentication settings](https://studio.tightknit.ai/-/website/authentication) in Studio.

### OAuth providers

Sign in with third-party accounts using industry-standard OAuth 2.0:

* **Google** - Sign in with any Google account
* **Microsoft** - Sign in with a Microsoft account
* **GitHub** - Sign in with a GitHub account
* **Slack** - Sign in with a Slack account that's a member of your workspace

### Email sign-in code

* **Email Sign-in Code** - Users enter their email address and receive a one-time 6-digit verification code. They enter the code on the site to sign in. No password required.

> [!NOTE]
>
> Sign-in emails can be blocked, quarantined, or filtered as spam by strict corporate email security, and members sometimes sign in with a different email than the one on their profile. For member-friendly guidance (including how to allowlist our senders), see [Not receiving emails from Tightknit](https://docs.tightknit.ai/support/troubleshooting.md#not-receiving-emails-from-tightknit).

### Single sign-on (SSO)

* **Enterprise SSO** - Integrate with your organization's identity provider using OIDC, SAML 2.0, or token-based JWT. [Learn more about SSO](https://docs.tightknit.ai/community-site/sso.md).

> [!TIP]
>
> All login methods use secure, industry-standard authentication protocols.

## Who can sign in

Tightknit matches the email from the sign-in method to a member profile in your community. The profile must be active. For a first-time OAuth sign-in, the provider must verify the profile's email address.

| Scenario | What happens |
| - | - |
| The member has an active profile and uses a verified email address | Sign-in succeeds. |
| The Slack invitation is pending, or was accepted but still appears pending | The invitation status does not block sign-in. Normal profile and email-verification rules still apply. |
| The Slack invitation was canceled before the person otherwise became a member | Sign-in is blocked. Send a new Slack invitation or add the person as a member in Studio. |
| The member profile is deactivated or was permanently erased | Sign-in is blocked. An admin can reactivate a deactivated member. An erased profile cannot be restored. |
| No profile matches the email address | Sign-in is blocked. Add the person as a member or confirm that they are using the email address on their profile. |
| A provider cannot verify the email during the member's first OAuth sign-in | Sign-in is blocked. The member can use an email sign-in code or another provider that verifies the same address. |
| The member uses Token-based JWT SSO | Tightknit checks the asserted email against an active profile. The member may need to verify their email before sign-in completes. |

### Why some sign-in errors are generic

After an OAuth provider verifies the member's email address, Tightknit can explain that the profile is deactivated or no longer available. Sign-ins with an unverified OAuth email and Token-based JWT SSO use a generic profile error. Legacy magic links and Email Sign-in Code requests also do not reveal whether an active profile matches the email. These safeguards prevent visitors from testing email addresses to discover member records.

Admins can investigate sign-in failures in the [community-wide authentication audit in Studio](https://studio.tightknit.ai/-/workspace/audit).

### Customize the login error message

When a person signs in with an account that does not match an active member profile, you can replace the default **Unable to sign in** message with guidance specific to your community. For example, link to an application form or explain who to contact for access.

In Studio, open **[Site > Authentication > Access](https://studio.tightknit.ai/-/website/authentication#access)** and edit **Login error message**. The message supports bold, italic, underline, strikethrough, lists, quotes, code, emoji, and HTTPS links. It can contain up to 200 visible characters.

The custom message applies to the `member_not_found` error. It also appears on the Email Sign-in Code screen under **Still no code?** after 30 seconds, because Tightknit sends codes only to emails with an active member profile. Everyone sees this guidance, so it does not reveal whether an email has a profile. Without a custom message, the screen asks people to contact your community team for access.

## Connected accounts

Members who sign in with one method can link additional sign-in methods under **Settings > Account** on the community site. For example, a member who first signed in with an email code can later connect their Slack or Google account so they can use either method going forward.

The list also shows a member's single sign-on identities, once they have signed in with your community's SSO provider. A custom token provider that matches members by email only never adds one (see [How Tightknit recognizes returning members](https://docs.tightknit.ai/community-site/sso.md#how-tightknit-recognizes-returning-members)). Your community manages these identities, so members can't disconnect them there.

Linking works by verifying ownership: the member is already signed in, and the provider they connect confirms a second identity belongs to them. No admin action is required.

### Managing connected accounts

Members open **Settings** from the profile menu, select the **Account** tab, and manage their linked methods under **Sign-in methods**:

* **Link a provider** — Click **Connect** next to an available provider (Slack, Google, or GitHub). A sign-in window opens to verify the account, and the provider is added as a linked sign-in method.
* **Unlink a provider** — Click **Disconnect** next to a linked provider to remove it. Tightknit blocks the disconnect if it would leave the member with no way to sign in to one of their communities.

These settings belong to the member's global Tightknit account, not to a single community. If a member belongs to several Tightknit communities, connecting or disconnecting a method applies everywhere, across all of them. A method the member has connected can be unusable in a community that does not enable that provider.

Tightknit emails the member whenever a sign-in method is connected to or removed from their account, including when one is linked automatically at sign-in. The email names the method, the community the change was made in, the time, and the IP address and device it came from. It's a security notice, so it's sent even if the member has turned off other emails, and it contains no links.

> [!NOTE]
>
> A provider is offered as linkable only when both conditions hold: it is one of the providers Tightknit supports for linking (Slack, Google, and GitHub), and it is enabled in your community's [authentication settings](https://studio.tightknit.ai/-/website/authentication). Microsoft can be offered as a login method but is never linkable (see the tip below). If you disable a provider, members can no longer sign in with it or link new accounts to it. Members who previously linked a disabled provider still see it listed, marked as not enabled in the current community, so they can disconnect it.

> [!TIP]
>
> Connected accounts give members flexibility without requiring admin intervention. A member who joined via SSO can link their Google account as a backup sign-in method, or a member who signed in with Slack can connect their GitHub account as an alternative way to sign in.

> [!WARNING]
>
> Linking is only offered for providers that prove the member owns the email address they return. Microsoft does not provide a verified email claim that Tightknit can rely on, so it is never offered as a connectable method, even in communities that enable it for sign-in. Members can still sign in with Microsoft, and a member who already has it linked can still disconnect it.
>
> The same email-verification requirement governs *automatic* linking at sign-in, which is where a custom SSO integration can be affected. A [Token-based JWT](https://docs.tightknit.ai/community-site/sso.md) issuer that does not assert an `email_verified` claim leaves the account's email unverified, so a later Google or Slack sign-in with the same address will not merge into that account. The member ends up with two separate accounts. A member avoids this by connecting Google or Slack under **Settings > Account** while signed in: they keep one account and can sign in with either method. If you run a custom SSO integration and want sign-ins to converge on one account without that step, have your issuer send `email_verified` and contact Tightknit to enable email-based linking for it. OIDC and SAML SSO are not affected: Tightknit trusts the email address those providers assert.

## Authentication audit trail

Studio provides two views for monitoring authentication activity across your community:

* **Per-member** — Open a member's detail page in [Studio Members](https://studio.tightknit.ai/-/members) and select the **Authentication** tab to see that member's sign-in history and connected accounts. See [Member detail page](https://docs.tightknit.ai/studio/members.md#member-detail-page) for details.
* **Community-wide** — Go to **[Workspace Settings > Audit](https://studio.tightknit.ai/-/workspace/audit)** in Studio and open the **Authentication** section to browse all authentication events across every member, with search and filtering.

Both views show successful sign-ins, failed attempts, and account linking activity. Use them to investigate sign-in issues, monitor for unusual patterns, or verify that members are using the expected login methods.

## Allowing members to log in

Member login is available on every plan. Turn it on to let members sign in to your community site, including a site with [Public Access](#public-access). A site with [Restricted Access](#restricted-access) always requires login.

Configure these settings in Studio under **[Site > Authentication](https://studio.tightknit.ai/-/website/authentication)**:

**1. Allow members to log in**

Under **Access**, turn on **Allow members to log in**. If your site uses [Restricted Access](#access-control-options), login is required and this setting is enabled automatically.

**2. Enable at least one login method**

Give members a way to sign in by enabling one or more methods:

* **Methods** — Email Sign-in Code (passwordless email sign-in via one-time code)
* **Providers** — Slack, Google, Microsoft, or GitHub
* **Single Sign-On** — your organization's [SSO provider](https://docs.tightknit.ai/community-site/sso.md) (Enterprise plan)

## Enabling interactivity

[Interactivity](https://docs.tightknit.ai/community-site/overview.md#interactivity) lets signed-in members do more than read content. With it, members can create posts and leave comments that sync back to your Slack workspace, follow members, Feeds, and posts, get site notifications, and register for events from the site. On plans without interactivity, members can still log in, but they cannot do any of these things on the site.

To enable interactivity:

**1. Allow members to log in**

Turn on member login and enable at least one login method. See [Allowing members to log in](#allowing-members-to-log-in).

**2. Allow posting on your Feeds**

To let members create posts and comments from the site, enable **Post from Site** on each Feed where you want it. See [Feed settings](https://docs.tightknit.ai/channels-and-feeds/create-feed.md#feed-settings).

> [!NOTE]
>
> Posting and commenting are controlled per Feed. Members can only create posts or comments on Feeds that have **Post from Site** turned on.

## Limitations

### Google Groups and aliases

Google Sign-in does not support **email aliases**, **Google Groups**, or other **distribution list emails**. OAuth authentication requires individual user accounts, not shared or group email addresses.

> [!WARNING]
>
> If a user attempts to sign in with a Google Group email (e.g.,
> [team@company.com](mailto:team@company.com)) or a distribution list, the authentication will fail. Users
> must sign in with their personal Google account.

**Examples of unsupported email types:**

* Google Groups (e.g., [team@company.com](mailto:team@company.com), [support@company.com](mailto:support@company.com))
* Email distribution lists
* Shared mailboxes
* Service accounts

## Restricted access behavior

When your site is set to **Restricted Access**, several public-facing actions are automatically hidden across the site since all visitors are already authenticated members:

* **Share** — The Share button and Share overflow menu are hidden on all pages, including feeds, posts, events, members, and resources.
* **Embed** — Embed options are hidden since content is not publicly accessible.
* **Follow (RSS)** — The Follow/RSS button is hidden on feed pages.
* **Ask AI** — The Ask AI button is hidden on feed pages.

These elements remain visible on public sites where they serve their intended purpose of helping visitors share and discover content.

## Login page customization

![Login page settings in Studio](https://mintcdn.com/tightknit/PRBQTlj_BVoNSxUi/assets/studio/site/login-page.png?fit=max\&auto=format\&n=PRBQTlj_BVoNSxUi\&q=85\&s=d9efd35ff90afdec10592ed5c7ea6df6)

Login page settings in Studio

You can customize the appearance of the login page's side marketing panel from Studio under **[Site > Authentication > Login Marketing Panel](https://studio.tightknit.ai/-/website/authentication#login-marketing-panel)**. The following options are available:

* **Enabled** — Toggle the marketing panel on or off.
* **Color theme** — Select a color theme for the panel.
* **Background color** — Set a solid background color (hex) that overrides the default branding gradient.
* **Background image** — Upload an image to use as a full-cover background on the side panel. When set, the background image takes precedence over the background color.
* **Title and description** — Customize the marketing copy shown on the panel.
* **Media image** — Upload a featured image to display on the panel.

> [!TIP]
>
> The background color and background image options give you full control over the panel's appearance. Use a background image for a branded visual, or a solid color for a clean, minimal look.

### Legal links

You can configure legal links that appear in the footer of the login form. These links are displayed as a consent line (e.g., "By continuing, you agree to our User Agreement and Privacy Policy").

To manage legal links, go to **[Site > Authentication > Legal Links](https://studio.tightknit.ai/-/website/authentication#legal-terms)** in Studio. You can add up to 5 links, reorder them via drag-and-drop, and customize each link's label and URL.

#### User Agreement

By default, the **Tightknit User Agreement** appears on every community site login page. It sets the rules members agree to when they use a community that runs on Tightknit. You can't edit its link or URL in Studio.

What to know about the User Agreement:

* **How member data is handled** — Tightknit processes your members' data on your behalf, as your processor under your agreement with Tightknit. Your privacy notice explains how their data is used, so add it as a custom legal link where members can find it.
* **Community standards** — The agreement sets baseline expectations for acceptable behavior and content on your community, protecting both you and your members.
* **Your privacy obligations** — As the controller of your members' data, you are responsible for telling members how you use it and for any consent you need. The User Agreement doesn't do that for you.

> [!NOTE]
>
> Enterprise communities can ask Tightknit to remove the User Agreement from their login page, so members accept only your own legal links. Contact your Tightknit account team to turn it off.

#### Adding custom legal links

You can add your own legal links, such as your privacy notice (recommended) or Terms of Service. Each link requires a label and a valid HTTPS URL. All configured links appear together in the login form consent line.

## Session management

Once signed in, users remain authenticated for **7 days**. After this period, they'll need to sign in again to access restricted content.

Sessions are automatically refreshed when users are active on the site. If a user accesses the site within 24 hours of their last activity, their session is extended for another 7 days. This means active users won't be logged out unexpectedly during normal use.

## Security features

* **Secure Cookies** - All authentication cookies are encrypted and secure
* **HTTPS Only** - Authentication only works over secure connections
* **Session Timeout** - Automatic logout after 7 days of inactivity
* **OAuth 2.0** - Industry-standard authentication protocol
* **Token Encryption** - OAuth access tokens and refresh tokens are encrypted at rest in the database to protect against unauthorized access if the database is compromised

## Login error codes

When authentication fails, the login page displays an error message based on an error code in the URL query parameter. These codes help identify the specific failure reason.

| Code | Description |
| - | - |
| `user_not_found` | No account found with the provided credentials. |
| `member_not_found` | An account exists but no active member profile was found in this community. |
| `account_deactivated` | The member's account has been deactivated by an administrator. |
| `account_forgotten` | The member's account has been removed through a GDPR data erasure request. |
| `authentication_failed` | Authentication failed due to invalid or expired credentials. |
| `sso_assertion_invalid` | The identity provider's SSO response could not be verified: a missing assertion, a bad signature, or a certificate mismatch. Sign-in stops before any membership check, so this points at the IdP's configuration rather than the member's account. |
| `sso_access_denied` | The identity provider refused the sign-in and sent the member back with an `access_denied` error, usually because the member is not assigned to the identity provider's application or declined its consent prompt. The fix is in the identity provider. See [The identity provider blocks the member before they reach Tightknit](https://docs.tightknit.ai/community-site/sso.md#the-identity-provider-blocks-the-member-before-they-reach-tightknit). |
| `tenant_mismatch` | The user is not authorized to access this community (SSO tenant mismatch). |
| `email_not_found` | The login provider did not return an email address for the account. |
| `email_otp_invalid` | The sign-in code is invalid, has already been used, or does not exist. |
| `email_otp_expired` | The sign-in code has expired. Request a new one. |
| `email_otp_too_many_attempts` | Too many incorrect attempts. The code has been invalidated; request a new one. |
| `email_otp_attempts_locked` | Too many sign-in attempts for this email recently. Wait the time shown, then try again; a new code won't help until then. |
| `magic_link_invalid` | The magic link is invalid or has already been used. (Legacy) |
| `magic_link_expired` | The magic link has expired. Request a new one. (Legacy) |
| `service_unavailable` | An upstream service was temporarily unavailable during authentication. Try again. |
| `verify_link_email_sent` | The SSO email already has a Tightknit account, so a confirmation link was emailed to it. See [Connecting SSO to an existing account](https://docs.tightknit.ai/community-site/sso.md#connecting-sso-to-an-existing-account). |
| `verify_link_alias_email_sent` | The SSO email is on an email domain alias of the provider, so a confirmation link was emailed to the address on the member's community profile, on the primary domain. See [Email domain aliases](https://docs.tightknit.ai/community-site/sso.md#email-domain-aliases). |
| `verify_link_confirmed` | The member confirmed the connection. They can sign in with the identity provider again. |
| `verify_link_invalid` | The confirmation link is invalid, already used, or expired. Sign in with the identity provider again to get a new one. |

> [!TIP]
>
> If you use an external identity provider (such as Auth0) with a post-login action that checks membership via the Tightknit API, you can redirect rejected users to your login page with these error codes. This displays a meaningful message. For example: `https://your-community.tightknit.ai/login?error=member_not_found`

## Troubleshooting

### Users can't sign in

* Ensure the user is using a supported browser
* Check that they have a valid account for one of the enabled login methods
* Verify the user is a member of your Slack workspace (for Slack login)
* If using Email Sign-in Code, check that the verification code email was not caught by a spam filter
* If an SSO member is told to check their email, they are being asked to confirm connecting SSO to an account that already exists. See [Connecting SSO to an existing account](https://docs.tightknit.ai/community-site/sso.md#connecting-sso-to-an-existing-account)

### Session issues

* Clear browser cookies and try again
* Check that the site is using HTTPS
* Ensure cookies are enabled in the browser

### Access denied

* Confirm the user is a member of your Slack workspace (if using Slack login)
* Check that the site access control is set to "Restricted Access"
* Verify the user completed the full authentication flow


## Related topics

- [Tightknit Infrastructure & Application Security](https://docs.tightknit.ai/security/application.md)
- [Audit](https://docs.tightknit.ai/studio/audit.md)
- [Members](https://docs.tightknit.ai/studio/members.md)
- [Security at Tightknit](https://docs.tightknit.ai/security/overview.md)
- [Single sign-on (SSO)](https://docs.tightknit.ai/community-site/sso.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.