Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/content/docs/build/login-hooks-custom-claims.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -468,8 +468,8 @@ request with:

with status `500`. The client can retry the request. No other sign refusal is retried.

Provider claims need `seamless-auth-api` v0.23.0 (seamless-auth-api#585) and the provider release
with seamless-auth-oidc-provider#63. Neither is released.
Provider claims need `seamless-auth-api` v0.23.0 and `seamless-auth-oidc-provider` 0.4.0 or later
(run 0.4.1). Against an older API the provider releases none of them.

---

Expand Down
8 changes: 4 additions & 4 deletions src/content/docs/build/native-apps-oidc.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -433,10 +433,10 @@ it does and does not check.
is a small standalone CLI that does the client side of this page against a local instance: `login`
through the system browser with a loopback redirect and PKCE `S256`, `login --device` with the device
grant, refresh, and `logout` with revocation. It is a public client with no secret, and its tokens
are in the OS keychain with no file fallback. It uses nothing new in API v0.23.0, but the
[local recipe](https://github.com/fells-code/seamless-auth-oidc-provider/tree/main/local) it runs on
builds that unpublished API from source, for its seed's client links, so it has not been run against
a published API.
are in the OS keychain with no file fallback. It uses nothing new in API v0.23.0. It was run on the
[local recipe](https://github.com/fells-code/seamless-auth-oidc-provider/tree/main/local) while that
recipe built the API from source, before v0.23.0 was published. The recipe now runs the published
API v0.23.0 and provider v0.4.1 images.

A CLI differs from a desktop app in three ways, and each one is easy to get wrong:

Expand Down
28 changes: 17 additions & 11 deletions src/content/docs/build/openid-provider.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,9 @@ it returns to and the requested scopes on every authorization.
| `openid` | `sub`, `acr`, `amr`, `auth_time` |
| `email` | `email`, `email_verified` |
| `phone` | `phone_number`, `phone_number_verified` |
| `seamless` | `roles`, `org_id` (the user's default organization) |
| `seamless` | `roles`, `org_id` (the session's active organization from provider 0.4.0; before, the user's oldest membership) |
| `permissions` | `roles`, `permissions`, `org_id`, `org_roles`, `org_permissions`, or `permissions_omitted` (provider 0.4.0 and API 0.23.0) |
| `custom_claims` | The [custom claims](/build/login-hooks-custom-claims#provider-tokens) resolved for the user and the application (provider 0.4.0 and API 0.23.0) |
| `offline_access` | A refresh token. See [Refresh tokens](#refresh-tokens) |

`sub` is the user's Seamless user ID. Every ID token carries the `acr`, `amr` and `auth_time` the
Expand Down Expand Up @@ -492,8 +494,9 @@ const url = oidc.buildAuthorizationUrl(config, {
})
```

The `acr`, `amr` and `auth_time` an app can rely on are the ones in the ID token. Access tokens for
an API do not carry them yet (see [Verify tokens in your API](#verify-tokens-in-your-api)).
From provider 0.3.0 (with API 0.22.0 or later), a user's access token for an API carries the same
`acr`, `amr` and `auth_time` as the ID token, and a refreshed one carries the session's current
values (see [Verify tokens in your API](#verify-tokens-in-your-api)).

---

Expand All @@ -517,6 +520,9 @@ The access token is then an RFC 9068 JWT (header `typ: at+jwt`, RS256) with:
- `aud` equal to the resource identifier, exactly as registered.
- `scope` cut to the scopes the application is allowed on that resource.
- `client_id`, `sub`, `iss`, `iat`, `exp` and `jti`.
- For a user's token, `acr`, `amr` and `auth_time` (provider 0.3.0 and later), and the claims of the
`permissions` and `custom_claims` scopes the grant holds (provider 0.4.0 and API
0.23.0). Device-flow and client credentials tokens carry no `acr`, `amr` or `auth_time`.
- The resource's own lifetime.

The API checks the same links again before it signs, so a token for one resource can never carry
Expand Down Expand Up @@ -764,8 +770,9 @@ An application registered for `refresh_token` gets a refresh token when it asks

Device-flow tokens never carry `acr`, after a refresh too. The passkey proves who approved the code,
not who holds the device, so a device token cannot satisfy a `phr` or `phrh` check. A device request
with `acr_values` or `max_age` is refused with `invalid_request`, and the API refuses to sign `acr`
onto any token from the device grant. `amr` still lists the methods the approver used.
with `acr_values` or `max_age` is refused with `invalid_request`. From API 0.22.0 the API refuses to
sign `acr`, `amr` or `auth_time` onto any token from the device grant, and provider 0.3.0 no longer
puts them there.

---

Expand Down Expand Up @@ -853,7 +860,7 @@ per application and 10 an hour per application and user.

A backend that serves a public client, such as a desktop app, cannot reach that app's users this way,
because users hold grants with the app and not with the backend. Client links solve that, and they
need Seamless Auth API v0.23.0, which is not published yet. See
need Seamless Auth API v0.23.0 or later. See
[Send A Notice Through The Client Link](/build/native-apps-oidc#send-a-notice-through-the-client-link).

---
Expand Down Expand Up @@ -885,12 +892,11 @@ The step-up guard takes `acr_values` (any of, and `phr` is also met by `phrh`),
`max_age` (seconds since `auth_time`). A client credentials token verifies, and fails role and
step-up guards.

<Aside type="caution" title="Role and step-up guards need claims the access tokens do not carry yet">
<Aside type="caution" title="Role and step-up guards need claims in the access token">
The role guard reads `roles`, and the step-up guard reads `acr`, `amr` and `auth_time`, from the
access token. The provider's access tokens for an API carry `iss`, `sub`, `aud`, `client_id`,
`scope`, `jti`, `iat` and `exp` only, so today those two guards refuse every provider token. Use
scope checks for provider tokens, and read the user's `acr` and roles from the ID token in the app
that signed the user in.
access token. A user's access token carries `acr`, `amr` and `auth_time` from provider 0.3.0, and
`roles` from provider 0.4.0 with API 0.23.0 when the grant holds the `permissions` scope. Against older versions, or without that scope, those guards refuse the token. Device-flow
and client credentials tokens never pass the step-up guard.
</Aside>

**Express, Fastify and Next.js** (`@seamless-auth/express`, `@seamless-auth/fastify`,
Expand Down
12 changes: 6 additions & 6 deletions src/content/docs/build/roles-and-permissions.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,8 @@ When you add someone who belongs to more than one organization, give the members

## Step 1: Define Permissions And Map Roles

You can do this in the admin console or through the admin API. The CLI does not manage permissions
or role mappings yet.
You can do this in the admin console, through the admin API, or with `seamless permissions` and
`seamless roles` in `seamless-cli` 0.30.0 and later.

### In The Admin Console

Expand Down Expand Up @@ -465,9 +465,9 @@ router, it refuses everyone.

The verify-only guards for OpenID Provider tokens (`createResourceServer` in Express and Fastify,
the resource server in Next.js, `Verifier` in Go, `ResourceServer` in Python, verify-only mode in
Rust) have a permission guard with the same rules, but **it denies every provider token today**.
Provider tokens do not carry these claims yet
([seamless-auth-oidc-provider#47](https://github.com/fells-code/seamless-auth-oidc-provider/issues/47)).
Rust) have a permission guard with the same rules. A user's provider access token carries these
claims from `seamless-auth-oidc-provider` 0.4.0 with API 0.23.0, when the application asked for the
`permissions` scope. Without that scope, or against older versions, the guard denies the token.

---

Expand Down Expand Up @@ -537,7 +537,7 @@ none: every check answers `false`, and `permissions`, `organizationRoles` and
| `@seamless-auth/react` | 0.20.0 | Published |
| Go, Python, Rust adapters | 0.6.0 (`v0.6.0` for Go) | Published |
| `seamless-auth-admin-dashboard` | v0.13.0 (Roles page) | Published |
| `seamless-cli` | None | No permission or role mapping commands |
| `seamless-cli` | 0.30.0 (`seamless permissions`, `seamless roles`) | Published |

---

Expand Down
35 changes: 22 additions & 13 deletions src/content/docs/compare/auth0.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ on the Seamless Auth managed service. It does much less than Auth0, on purpose.
This page is for an engineer or technical lead deciding whether to move off Auth0, or whether to
start on it. Every Auth0 detail links to Auth0's or Okta's own docs or pricing page, and the
[Sources](#sources) section gives the date each one was checked. Seamless Auth details were checked
against the source repositories at Seamless Auth API v0.21.1 on 2026-11-01. Prices, plan contents, and feature limits change, so confirm them
against the source repositories at Seamless Auth API v0.23.0 on 2026-11-10. Prices, plan contents, and feature limits change, so confirm them
on [auth0.com/pricing](https://auth0.com/pricing) before you decide.

---
Expand All @@ -34,13 +34,16 @@ on [auth0.com/pricing](https://auth0.com/pricing) before you decide.
client credentials flow for machine-to-machine access, and is a certified FAPI OpenID Provider.
Since v0.21, Seamless Auth also ships an OpenID Provider: a separate service, off by default, with
the authorization code flow and `S256` PKCE, client credentials, the device grant for first-party
apps, and JWT access tokens for your APIs. It is new (provider 0.3.0, released 2026-11-02) and not
apps, and JWT access tokens for your APIs. It is new (provider 0.4.1, released 2026-11-10) and not
OpenID certified.
- **You need password sign-in.** Auth0 supports passwords in database connections. Seamless Auth has
no password flow, by design.
- **You want to run custom code inside the login flow.** Auth0 Actions are Node.js functions on
triggers such as `post-login`, `pre-user-registration`, and `credentials-exchange`. Seamless Auth
has no equivalent; that logic goes in your own backend.
runs no code of yours inside the auth server. Since v0.23 it calls an HTTPS endpoint you run at two
points, `post_login` (allow or deny) and `pre_token` (allow, deny, or add claims), and has static
custom claims per role or OpenID Provider client. There is no trigger before a user is created, a
hook cannot redirect the browser, and neither hook runs on refresh.
- **You need a wide choice of MFA factors.** Auth0 lists push notifications (Guardian), SMS, voice,
authenticator-app OTP, WebAuthn security keys and device biometrics, email, Cisco Duo, and recovery
codes. Seamless Auth offers passkeys and TOTP as a second factor.
Expand Down Expand Up @@ -99,12 +102,12 @@ page.
| SAML enterprise SSO | No | Yes, as an enterprise connection. 1 on Free, 3 on B2B Essentials, 5 on B2B Professional, extra connections a paid add-on; the B2C feature table lists none on Essentials or Professional |
| SCIM provisioning | No | Inbound SCIM on SAML, OIDC, Okta Workforce, and Entra ID connections; needs a plan with enterprise connections |
| Acts as an OAuth/OIDC provider, machine-to-machine tokens | Yes, since v0.21, through the separate OpenID Provider service (off by default): authorization code with PKCE, client credentials, device grant (first-party), RFC 9068 access tokens; not OpenID certified | Yes; certified FAPI OpenID Provider |
| Organizations | Yes: memberships, per-organization roles and scopes, active organization on the session | Yes: members, roles, invitations, per-organization connections and branding; 5 on Free, 10 on B2C paid plans, unlimited (subject to system limits) on B2B paid plans |
| Extensibility | Logic in your own backend, behind the server adapter | Actions (Node.js) on login, registration, password, and machine-to-machine triggers; 5 on Free up to 30 on Enterprise |
| Organizations | Yes: memberships, per-organization roles and scopes, active organization on the session; organization roles and permissions in the token (API v0.23.0 and later) | Yes: members, roles, invitations, per-organization connections and branding; 5 on Free, 10 on B2C paid plans, unlimited (subject to system limits) on B2B paid plans |
| Extensibility | Signed webhooks, `post_login` and `pre_token` login hooks, and static custom claims (API v0.23.0 and later). Other logic lives in your own backend, behind the server adapter | Actions (Node.js) on login, registration, password, and machine-to-machine triggers; 5 on Free up to 30 on Enterprise |
| Prebuilt UI | Built-in auth routes (`AuthRoutes` in React; equivalents in Angular, Vue, Svelte), or headless | Universal Login on Auth0's authorization server, Classic Login, and embedded login |
| User import | `seamless migrate csv`, `seamless migrate entra-id`, `POST /admin/users/import`; identities only, no credentials | Bulk import into a database connection, including supported password hashes; 500KB per file |
| User export | No bulk export endpoint; self-hosted, the data is in your own Postgres. Paginated admin user list and a passkey coverage report (CSV) | Bulk export job (JSON or CSV), not on Free; password hashes and MFA secrets by support case |
| Audit trail | Append-only, hash-chained auth events; NDJSON export with an integrity check | Tenant logs, retention by plan; log streams to many services or a webhook |
| Audit trail | Append-only, hash-chained auth events; NDJSON export with an integrity check; streaming to a SIEM over OTLP (API v0.23.0 and later, syslog in 0.23.1) | Tenant logs, retention by plan; log streams to many services or a webhook |
| Third-party compliance attestations | None for Seamless Auth itself | SOC 2 Type 2, ISO 27001/27017/27018, HIPAA BAA, PCI DSS, CSA STAR, FAPI certified |
| Maturity | 0.x, small community | Established commercial product, large community |
| Pricing model | Free to self-host; managed plans in the portal | Free plan up to 25,000 MAU; paid plans priced by MAU tier, separate B2C and B2B prices, add-ons for enterprise connections, MFA, and M2M tokens |
Expand Down Expand Up @@ -157,7 +160,8 @@ browser or native app
Clients never call the auth API directly. Your backend mounts the adapter routes, forwards calls
with a service token, and keeps the session in signed `httpOnly` cookies on your domain (native
apps use bearer tokens in the platform keystore). Your backend verifies sessions locally against the
auth API's JWKS. Authorization stays in your own code. See
auth API's JWKS. The adapter's guards check the roles and permissions in the token, and the rest of
authorization stays in your own code. See
[What Is Seamless Auth?](/start/overview#how-the-pieces-connect).

Since v0.21 you can also run the optional [OpenID Provider](/build/openid-provider), a separate
Expand All @@ -181,12 +185,15 @@ today, stay on Auth0 or choose another product.
changes go through the CSV import.
- **Other applications or services need a certified identity provider.** Seamless Auth's OpenID
Provider (v0.21, off by default) can sign other OpenID Connect apps in and issue client credentials
tokens, but it is new and not OpenID certified, and it has nothing like Actions to shape their
tokens. Test each app that logs in through Auth0 today against it before you move that app.
tokens, but it is new and not OpenID certified. Custom claims and `pre_token` hook claims reach
its tokens, but no code of yours runs in it the way an Action does. Test each app that logs in through Auth0 today against it before you move that app.
- **Your users sign in with passwords and you cannot change that.** There is no password flow, and
no password hashes are imported.
- **You depend on Actions to shape tokens or gate login.** There is no hook system; you move that
logic into your backend.
- **You depend on Actions that a hook cannot replace.** `post_login` and `pre_token` hooks cover
allowing, denying and adding claims at sign-in, but they are HTTP calls to a service you run, not
code hosted by Seamless Auth. No hook runs on refresh or before a user is created, and a hook cannot
redirect the browser. See
[Porting Auth0 Actions](/build/login-hooks-custom-claims#porting-auth0-actions).
- **You need a vendor's SOC 2 report or a contractual SLA for the auth service itself.** Seamless
Auth has no third-party attestations. Self-hosted, it is covered by your own controls.
- **You need a 1.0 stability guarantee.** Every Seamless Auth package is still 0.x.
Expand Down Expand Up @@ -234,7 +241,7 @@ Auth0 and Okta details, each checked on the date shown:
- [Universal Login](https://auth0.com/docs/authenticate/login/auth0-universal-login), checked 2026-10-20: login on Auth0's authorization server
- [Okta customer identity product page](https://www.okta.com/products/customer-identity/), checked 2026-10-20: redirects to auth0.com

Seamless Auth details (Seamless Auth API v0.21.1, checked 2026-11-01):
Seamless Auth details (Seamless Auth API v0.23.0, checked 2026-11-10):

- [What Is Seamless Auth?](/start/overview), including [When Seamless Auth Is Not The Right Choice](/start/overview#when-seamless-auth-is-not-the-right-choice)
- [Migrating Off Auth0](/operate/migrate-from-auth0), including [What You Give Up Or Must Plan For](/operate/migrate-from-auth0#what-you-give-up-or-must-plan-for)
Expand All @@ -243,6 +250,8 @@ Seamless Auth details (Seamless Auth API v0.21.1, checked 2026-11-01):
- [How To Use Organizations And Memberships](/build/organizations-memberships)
- [OAuth Login](/build/oauth-login)
- [OpenID Provider](/build/openid-provider)
- [v0.21 Release Notes](/reference/release-v0-21)
- [How To Use Roles And Permissions](/build/roles-and-permissions), [How To Receive Webhooks](/build/webhooks) and [How To Use Login Hooks And Custom Claims](/build/login-hooks-custom-claims)
- [How To Stream Audit Events To A SIEM](/operate/stream-audit-events-siem)
- [v0.21 Release Notes](/reference/release-v0-21) (OpenID Provider) and [v0.23 Release Notes](/reference/release-v0-23) (roles, permissions and hooks)
- [Auth Events and Auditing](/understand/authevents)
- Source: [fells-code on GitHub](https://github.com/fells-code)
Loading
Loading