---
title: Security
description: "Generate and rotate the widget JWT secret, review banned users, and see which security features this build includes."
---

**Settings → Security** has two sections. **JWT Authentication** serves the members who configure the widget. **Banned users** serves the members who moderate the portal. Either permission opens the page. The JWT section needs `workspace.update`, so a manager sees the ban list and not the JWT section.

![The Security page: JWT Authentication with a Generate Secret button, then
Banned users with a search field, an Add banned user button, and rows for
taylor@feeblo.dev and
spam-bot@example.com.](../images/guides/settings-security.png)

Settings → Security with no active JWT secret and two banned addresses listed.

## Permissions and plans

| Section | Permission | Plan |
| --- | --- | --- |
| JWT Authentication | `workspace.update` (owner or admin) | Widget SSO on Starter or Professional |
| Banned users | `userBans.manage` (manager and above) to change | Creating a ban on Starter or Professional |

A workspace that downgrades keeps its existing bans, can still list them, and can lift one. Generating a JWT secret is not plan-gated, but the widget refuses to use it for SSO until the plan includes Widget SSO.

## Generate the widget secret

1. **Open JWT Authentication**

    In **Settings → Security**, find the **JWT Authentication** section. Owner
    or admin only.

2. **Generate a secret**

    Click **Generate Secret**. Feeblo creates a 64-character hex secret.

3. **Copy it**

    The active secret shows its creation date and a **Copy Secret** button. It
    stays available until you replace it, so it is not shown once.

4. **Sign on your server**

    Sign HS256 tokens with this secret and send them to the widget. [Widget
    SSO](https://docs.feeblo.com/developers/widget-sso) has the claims and the
    signing code.

## Rotate or revoke the secret

The menu on the active secret offers **Rotate (24h grace period)** and **Revoke Immediately**.

Both set the active secret's revocation time 24 hours ahead. Tokens signed with it keep verifying for that window. Only the active secret and the most recent grace-period secret are ever accepted, and the grace row is pruned once its window ends. Neither action stops existing tokens at once, despite the word Immediately.

:::warning[Revoking is not instant]

Treat both actions as rotation. If a secret has leaked, tokens signed with it can keep verifying for up to 24 hours after Rotate or Revoke Immediately. Plan the replacement around that window.

:::

## Banned users

A ban is workspace-scoped and applies to end users. It stops posting, commenting, editing comments, voting, reacting, and subscribing to a post on this workspace's portal and widget. It does not stop reading, does not stop signing in, and is not an email suppression. [Moderate feedback](/guides/moderating-feedback) covers how to create one and what it removes.

The list shows a name or address, the reason, the date, and the member who banned the person. Search by email. **Unban** removes the ban. A ban has no expiry, so it lasts until someone lifts it. Unbanning does not restore the votes or subscriptions the ban removed.

A workspace member cannot be banned. Remove the member instead.

## Two-factor authentication

This build has no two-factor authentication. The database carries a two-factor table and the auth client registers the plugin, but the server does not enable it and no dashboard screen offers enrollment. **Settings → Security** is limited to widget authentication and the ban list.
