Built-in Identity (Casdoor)
Spokes includes a built-in instance of Casdoor, an open-source OpenID Connect (OIDC) identity provider. It works without extra setup and is the recommended option if you do not already run your own SSO server.
This page explains how the embedded Casdoor integration works and how to add users to your server.
High-Level Architecture
Section titled “High-Level Architecture”When you select Built-in Identity during the Setup Wizard, Spokes automatically provisions and starts a local Casdoor server:
- Embedded Service: Casdoor runs inside the same Docker container as the main Spokes application. Supervisor (
supervisord) manages both processes. - Persistent Storage: Casdoor stores its data in a dedicated SQLite database (
/data/casdoor.db) and configuration folder (/data/casdoor/) inside your/datavolume, so your accounts are included whenever you back up your server. - Automatic OIDC & Mobile Setup: Spokes communicates with Casdoor over standard OpenID Connect (OIDC) and automatically configures all required web and mobile Redirect URIs (
/signin-oidc,/signout-callback-oidc,/sso/mobile-logout-complete, andspokes://auth-callback), so the iOS, Android, Desktop, and Web apps work out of the box.
Administration & Management
Section titled “Administration & Management”Organizations Explained
Section titled “Organizations Explained”To keep your server's user directory clean and separate from global system settings, the built-in Casdoor instance uses two organizations:
1. The built-in Organization
Section titled “1. The built-in Organization”This is Casdoor's root system organization. It controls global Casdoor settings. The Global Admin account belongs to this organization.
2. The spokes-org Organization
Section titled “2. The spokes-org Organization”This organization is created specifically for your Spokes server. The Spokes Admin account and all of your Spokes users belong to spokes-org.
Administrator Accounts
Section titled “Administrator Accounts”During the Setup Wizard, two administrator accounts are created:
Global Admin (System Management)
Section titled “Global Admin (System Management)”- Username:
admin(Fixed) - Organization:
built-in - Purpose: Managing the Casdoor server globally (only needed for advanced global Casdoor settings).
Spokes Admin (Day-to-Day Management)
Section titled “Spokes Admin (Day-to-Day Management)”- Username: Chosen during setup (defaults to
admin, stored in lowercase) - Organization:
spokes-org - Purpose: Your main administrator account inside Spokes, and the account you use to manage users, invitation codes, and OAuth providers (like Discord) in Casdoor.
Accessing Casdoor
Section titled “Accessing Casdoor”There are two ways to open the Casdoor admin interface:
Method 1: The "Open Casdoor" Button (For Spokes Admins)
Section titled “Method 1: The "Open Casdoor" Button (For Spokes Admins)”If you are signed into Spokes as an admin (or have the ManageUsers permission):
- Navigate to the Members & Groups (
/organization) page in Spokes. - Click the Open Casdoor button in the top right corner.
- This opens
/login/spokes-org, where you can manage users, invitations, and providers forspokes-org.
Method 2: Direct Login (For Global Admins)
Section titled “Method 2: Direct Login (For Global Admins)”If you ever need to log into the root built-in organization:
- Open an Incognito / Private Browsing window (so your active Spokes session does not conflict).
- Navigate directly to
https://spokes.yourdomain.com/login. - Sign in with
adminand the Global Admin password from the Setup Wizard.
Adding New Users
Section titled “Adding New Users”By default, only your administrator account exists after setup. You can add friends, family, or team members in two ways: by creating their accounts manually, or by creating an Invitation Code so they can sign up themselves.
Option A: Create User Accounts Manually
Section titled “Option A: Create User Accounts Manually”1. Open the Casdoor Admin Interface
Section titled “1. Open the Casdoor Admin Interface”Go to Members & Groups (/organization) in Spokes and click Open Casdoor in the top right corner.

2. Navigate to Users
Section titled “2. Navigate to Users”In the Casdoor top navigation bar, go to Identity -> Users.

3. Add a New User
Section titled “3. Add a New User”Click the Add button in the top right corner to create a new user, then click Edit on the new row.

4. Configure User Details
Section titled “4. Configure User Details”Fill in the user's details:
- Name: Their login username (must be lowercase without spaces).
- Display Name: Their visible name when they first join Spokes.
- Password: Set a temporary password for the user (they can change it later).
(Note: The avatar field inside Casdoor is not used by Spokes. Users can upload and crop their own avatars directly inside Spokes. An email address is optional unless you plan to use email-based features like password resets or Discord email linking.)
Click Save & Exit.

Your user can now sign into Spokes with their username and password.
Option B: Let Users Sign Up with an Invitation Code
Section titled “Option B: Let Users Sign Up with an Invitation Code”By default, Spokes configures the spokes application in Casdoor with self-registration enabled, protected by a required Invitation code.
If you want your friends to create their own accounts without opening your server to random strangers on the internet:
- In Casdoor, go to Identity -> Invitations and click Add.
- Edit the new invitation, make sure Application is set to
spokes(orAll), set your desired Quota (how many people can use the code), and copy the Code. - Click Save & Exit.
- Send your server URL and the invitation code to your friends. They can click Sign Up on the login page, enter the invitation code, and choose their own username and password.
Automatic Branding & UI Cleanup
Section titled “Automatic Branding & UI Cleanup”Spokes handles a few maintenance tasks in the background so you do not have to configure Casdoor by hand:
- Branding Sync: Whenever you update your Server Name, Logo, or Icon in Spokes, those changes are automatically synced to the Casdoor login page.
- Simplified User Fields: Out of the box, Casdoor shows dozens of enterprise profile fields. On first boot, Spokes automatically hides unnecessary fields in
spokes-orgso your user management screen stays clean and straightforward.
