Skip to content

Commit 07d41f8

Browse files
docs(configure): SSO admin guides for Okta and Microsoft Entra ID, checked against production v2.12.0 (supersedes #467) (#472)
* docs(configure): SSO admin guides for Okta and Microsoft Entra ID, and a Setup → SSO Providers section Two new English pages, configure/sso-okta and configure/sso-entra-id, each covering OIDC and SAML 2.0 with the values an administrator pastes on both sides: the OIDC callback, SAML ACS and SP entity ID under /api/v1/auth/sso/..., the Okta authorization-server access policy and a password-only authentication policy for test accounts, the Entra email claim for users without a mailbox, MFA registration, per-user assignment on Entra ID Free, DNS TXT domain verification, and group mapping with Map SSO Group. authentication.mdx gains a Setup → SSO Providers section kept apart from the configuration-time genericOAuth route; the FAQ links the guides. Values follow the live runs recorded on objectstack-ai/cloud#3666 (Entra ID OIDC re-run on the released ObjectOS Enterprise 4.4.0). Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012dn2AdARJtc4RgABPH7PHk * docs(configure): SSO guides follow production v2.12.0 and the released framework - objectstack#32146 is closed, but its fixes (objectstack#33418, #33490) are in no release yet (framework 18.4.0 = 181ad7d4, the pin cloud v2.12.0 serves). "until #32146 is fixed" now reads "until a release carries the fix for #32146", in both guides. - The ObjectOS Cloud bullet "Group mappings cannot be saved on ObjectOS Cloud yet" is removed from both guides. At cloud v2.12.0 the hosted auth proxy forwards the whole auth path to the environment (cloud#4415), and framework 181ad7d4 serves admin/scim/set-group-mapping; the only hosted filter is admin/sso/* on a plan without the external IdP. cloud#4314, which the bullet rested on, is closed. - Entra SAML, users without a mailbox: say what the code does. The vendor (@better-auth/sso 1.7.12, unpatched) takes the email from the mapped attribute and falls back to the NameID; the UPN source switch gives such users an email attribute of their own. Co-Authored-By: Claude <noreply@anthropic.com> --------- Co-authored-by: Claude <noreply@anthropic.com>
1 parent 20b5b4c commit 07d41f8

5 files changed

Lines changed: 690 additions & 8 deletions

File tree

‎content/docs/configure/authentication.mdx‎

Lines changed: 62 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Authentication
33
seoTitle: "Authentication: OAuth, OIDC/SSO and Device Flow"
4-
description: Configure sign-in, sessions, OAuth, OIDC/SSO, and device flow.
4+
description: Configure sign-in, sessions, OAuth, OIDC/SSO, SSO providers registered in Setup (OIDC and SAML 2.0), and device flow.
55
editions: [community, cloud, enterprise]
66
---
77

@@ -18,7 +18,9 @@ support:
1818
- session management;
1919
- password reset and email verification;
2020
- social OAuth providers such as Google, GitHub, Microsoft, and Apple;
21-
- enterprise OIDC/SSO such as Okta, Entra ID, Keycloak, and Ping;
21+
- enterprise single sign-on through your identity provider (Okta, Entra ID,
22+
Keycloak, Ping, …), over OIDC or SAML 2.0, registered by an administrator
23+
in [Setup → SSO Providers](#setup--sso-providers);
2224
- two-factor authentication;
2325
- passkeys/WebAuthn;
2426
- magic links;
@@ -143,7 +145,10 @@ two distinct callback paths and they are **not** interchangeable:
143145
| Provider type | Callback path |
144146
|---|---|
145147
| Built-in social (Google, GitHub, Microsoft, Apple, …) | `/api/v1/auth/callback/<provider>` |
146-
| Generic OIDC / OAuth2 (Okta, Entra ID, Keycloak, Ping, …) | `/api/v1/auth/oauth2/callback/<provider>` |
148+
| Generic OIDC / OAuth2 configured in code (Okta, Entra ID, Keycloak, Ping, …) | `/api/v1/auth/oauth2/callback/<provider>` |
149+
150+
An SSO provider registered in **Setup → SSO Providers** uses a third set of
151+
paths, listed in [that section](#setup--sso-providers).
147152

148153
Examples:
149154

@@ -157,11 +162,15 @@ https://crm.example.com/api/v1/auth/oauth2/callback/entra
157162
Configure the matching redirect URI in the identity provider's
158163
application registration before enabling the provider in ObjectOS.
159164

160-
## Enterprise OIDC/SSO
165+
## Enterprise OIDC/SSO in configuration
161166

162-
OIDC providers are registered as generic OAuth2 providers and use the
163-
`/api/v1/auth/oauth2/callback/<provider>` path. A typical configuration
164-
requires:
167+
This section is about OIDC providers that the application package or the
168+
deployment's configuration declares (the generic OAuth2 route, `genericOAuth`).
169+
They are registered as generic OAuth2 providers and use the
170+
`/api/v1/auth/oauth2/callback/<provider>` path. To let an administrator add
171+
an identity provider from the console instead, without a configuration
172+
change, use [Setup → SSO Providers](#setup--sso-providers). A typical
173+
configuration requires:
165174

166175
| Field | Description |
167176
|---|---|
@@ -175,6 +184,52 @@ requires:
175184
For customer deployments, prefer OIDC discovery URLs over manually
176185
configured authorization/token/userinfo endpoints.
177186

187+
## Setup → SSO Providers
188+
189+
**Setup → Access Control → SSO Providers** is where a platform administrator
190+
connects the organization's own identity provider, over **OIDC** or **SAML
191+
2.0**, without touching configuration. It is a different route from the
192+
configuration-time providers above: its providers live in the database, are
193+
added and changed in the console, and use their own callback paths. Use one
194+
route per identity provider, not both.
195+
196+
| | Configuration (`genericOAuth`, above) | Setup → SSO Providers |
197+
|---|---|---|
198+
| Who adds a provider | Whoever edits the package or deployment configuration | A platform administrator, in the console |
199+
| Protocols | OIDC / OAuth2 | OIDC and SAML 2.0 |
200+
| OIDC callback | `/api/v1/auth/oauth2/callback/<provider>` | `/api/v1/auth/sso/callback/<provider id>` |
201+
| SAML ACS URL | — | `/api/v1/auth/sso/saml2/sp/acs/<provider id>` |
202+
| SAML SP entity ID | — | `/api/v1/auth/sso/saml2/sp/metadata?providerId=<provider id>` |
203+
| How people reach the provider | As the application configures it | **Sign in with SSO**: people type their work email and are routed by its domain |
204+
| Domain verification, just-in-time accounts, group → permission-set mapping | — | Per provider |
205+
206+
The page appears once SSO is on: `OS_SSO_ENABLED=true` on a self-hosted
207+
deployment; on ObjectOS Cloud, a plan that includes single sign-on with your
208+
identity provider. From the list, a platform administrator:
209+
210+
- registers a provider — **Register SSO Provider** (OIDC) or **Register SAML
211+
Provider** — naming its **Provider ID** (the last segment of the URLs above)
212+
and the **email domain** whose people it signs in;
213+
- proves the domain with **Request Domain Verification** and **Verify
214+
Domain** (a DNS TXT record). ObjectOS Enterprise and ObjectOS Cloud require
215+
this before the provider signs anyone in; on Enterprise
216+
`OS_SSO_DOMAIN_VERIFICATION=false` turns it off;
217+
- sets **Edit Sign-In Options**: **Allow Just-in-Time Provisioning** (create
218+
the account at a first sign-in, instead of requiring an invitation), **Allow
219+
IdP-Initiated Sign-In**, and for OIDC **Read Claims From the ID Token
220+
Only**;
221+
- adjusts the provider later with **Edit OIDC Settings**, **Edit SAML
222+
Settings** (for example a new signing certificate), **Edit Attribute
223+
Mapping** and **Edit Groups Claim**;
224+
- maps the identity provider's groups to permission sets in **Setup → IdP
225+
Group Mappings → Map SSO Group**.
226+
227+
Step-by-step guides, with the exact values to paste on each side:
228+
229+
- [SSO with Okta](/docs/configure/sso-okta) — OIDC and SAML 2.0;
230+
- [SSO with Microsoft Entra ID](/docs/configure/sso-entra-id) — OIDC and
231+
SAML 2.0.
232+
178233
## Platform SSO
179234

180235
In cloud-connected deployments, ObjectOS can use the control-plane login

‎content/docs/configure/meta.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"title": "Configure",
33
"defaultOpen": false,
4-
"pages": ["index", "users", "runtime", "data-sources", "authentication", "permissions", "storage", "ai", "mcp", "system-settings", "localization", "notifications", "api-access", "webhooks", "email"]
4+
"pages": ["index", "users", "runtime", "data-sources", "authentication", "sso-okta", "sso-entra-id", "permissions", "storage", "ai", "mcp", "system-settings", "localization", "notifications", "api-access", "webhooks", "email"]
55
}

0 commit comments

Comments
 (0)