Tenant root and app sectors
Signup creates your tenant root — the organization account you administer — and an app sector named My first app. The organization has a permanent slug and a Sector ID.
Sign in with the slug: https://dashboard.spartanauth.com/login/{slug}. The Sector ID shown on the signup page belongs to this organization. Keep it for the dashboard. Do not paste it into an application’s login widget. The widget ID is My first app, which the dashboard selects for you.
New sub-sector adds another app. An app sector has its own users, passwords, passkeys, security settings, OAuth providers, allowed origins, and API keys. You can rename My first app. Its slug stays fixed.
End-user login (the login widget) always targets a single sector ID. That ID is the app sector ID.
Tenant root vs app sector
Section titled “Tenant root vs app sector”| Aspect | Tenant root | App sector |
|---|---|---|
| What it is | The organization created when you sign up | One app. My first app is created for you. New sub-sector adds another. |
| Sector ID | The ID on the welcome page. Dashboard only. | The ID you copy into the login widget |
| Who administers it | Tenant root admins | Admins of that app sector, plus tenant root admins |
| Use it for an app? | Possible for a single internal tool. Not recommended. | Yes. One app sector per app. |
| Dashboard login | Your organization slug, for example /login/acme | Its own slug, if you want a separate login URL |
Use one app sector per application. My first app covers the first product. The tenant root can authenticate an app, but sharing it across products mixes users, CORS origins, OAuth clients, and API keys. App sectors keep each app’s users and settings separate while you still manage everything from the tenant root.
Tenant root admins can:
- Create, edit, and delete app sectors (the tenant root itself cannot be deleted)
- Invite users and manage profiles in any sector in the organization
- Create API keys on the tenant root (those keys can administer every sector) or on a single app sector (scoped to that app)
App-sector admins can only manage that app sector.
Creating another app sector
Section titled “Creating another app sector”A new organization already includes My first app. These steps add the next one.
- Open the invite email, set your password, and sign in at
https://dashboard.spartanauth.com/login/{your-slug}. You land in the organization, with My first app selected on Home. - Open Sectors.
- Choose New sub-sector. Enter a name (for example “Production app”) and a slug (lowercase letters, numbers, and hyphens).
- Set Domain and Allowed Origins for that app. Browser login fails until this app sector lists the site’s origin.
- Submit. Copy the new Sector ID (UUID). That is the login widget’s
sectorvalue.
The slug is fixed after create. It is used in dashboard login URLs (https://dashboard.spartanauth.com/login/{slug}).
Dashboard passkeys are already configured on the tenant root, for dashboard.spartanauth.com. When your own users sign in with passkeys, set the WebAuthn relying party on the app sector: the RP ID is your site’s host, and that origin must be listed on the same sector.
Switching sectors in the dashboard
Section titled “Switching sectors in the dashboard”The sidebar sector dropdown switches context. Users, security settings, OAuth, and API keys always apply to the selected sector. Tenant root admins can switch into any app sector; app-sector admins only see their own.
Sector settings
Section titled “Sector settings”Domain and allowed origins
Section titled “Domain and allowed origins”The Domain field sets the primary origin for the app that uses this sector. SpartanAuth uses this for:
- CORS — only requests from allowed origins can call the API from a browser
- Email links — password reset and magic link URLs
Allowed Origins adds extra CORS origins (e.g. https://staging.myapp.com, http://localhost:5173 for local development). Configure origins on the app sector that app uses, not only on the tenant root.
Self sign-up
Section titled “Self sign-up”When Self Sign-Up is enabled on a sector, new users can register via <spartan-login>. When disabled, users must be invited. This is per sector — you can allow self sign-up on a public app and keep it off on an internal tool.
Security settings
Section titled “Security settings”Per-sector options include:
- Required MFA. A user can also require it for their own sign-ins from account settings when this sector and the platform do not. That control is hidden when either already requires MFA. Saving “No” here does not turn off a platform “Yes.”
- Reject breached passwords, checked when a password is created or changed
- Require a reset before a known breached password can finish sign-in. Existing sessions stay valid until they expire. See Breached passwords for both settings, and update the login widget before turning the reset requirement on.
- Access token lifetime
- WebAuthn RP ID and origins (passkeys)
Configure these on the app sector your users actually log into. Passkeys for your app are configured here. The tenant root’s passkey settings are for the SpartanAuth dashboard.
Access token lifetime
Section titled “Access token lifetime”Access token lifetime (hours) is on the sector’s Security tab, with the other security settings. It sets how long a new sign-in token for that sector keeps working.
| Dashboard | A whole number of hours from 1 to 168 (7 days) |
| API | AccessTokenDuration in seconds, from 1 second through 7 days. Omitting it, or sending 0, leaves the stored value unchanged. |
| When unset | The platform default, 4 hours (GLOBAL_ACCESS_TOKEN_EXPIRATION_SECONDS, default 14400) |
| Above 7 days | Issuance uses 7 days. A stored value above the cap is shown as 168 hours. |
Save Security Settings writes the lifetime with the other fields on this form, and only for the sector you are viewing. Saving email, SMS, or passkey settings does not change it.
On the tenant root only, Apply to all sectors sits next to the hours field. It writes the hours currently in that field to every sector in the organization, including the tenant root. It does not save the other security fields. An app sector can choose a different lifetime afterward from its own Security tab.
A token cannot be ended early. A copied token keeps working until it expires. Tokens already issued keep the expiry they were given. Deleting the account makes introspection fail. Changing the password does not. Service tokens stay one hour and do not use this setting.
Deleting a sector
Section titled “Deleting a sector”Deleting an app sector is permanent and removes profiles, credentials, and settings in that sector. The tenant root cannot be deleted.
When you delete an app sector, also remove its users if you no longer need those accounts, and stop sending that Sector ID from your app.
Next steps
Section titled “Next steps”- User management — invite users into the correct sector
- OAuth providers — social login per sector
- API keys — tenant root keys vs app-sector keys
- Services — let one program call another in this app
- Login widget — pass the app sector ID into
sector