Teams & Security / Enterprise Security (SSO, SCIM & Policies)

Enterprise Security (SSO, SCIM & Policies)

Configure SAML 2.0 or OIDC Single Sign-On, automate lifecycle management with SCIM 2.0 Directory Sync, and enforce workspace-wide 2FA, session TTL, and IP/CIDR allowlists.

SAML 2.0 & OIDC Single Sign-On (SSO)

Workspace Owners and Admins can connect any standard SAML 2.0 or OpenID Connect Identity Provider — including Okta, Microsoft Entra ID (Azure AD), Google Workspace, Auth0, JumpCloud, or OneLogin — from Settings → Enterprise security.

Service Provider FieldEndpoint Pattern
SP Entity ID / Metadata XMLhttps://api.weond.com/api/auth/sso/saml/<workspaceSlug>/metadata
SAML ACS URL (HTTP-POST)https://api.weond.com/api/auth/sso/saml/<workspaceSlug>/acs
OIDC Redirect / Callback URIhttps://api.weond.com/api/auth/sso/oidc/<workspaceSlug>/callback
Workspace SSO Sign-In URLhttps://api.weond.com/api/auth/sso/<workspaceSlug>/login

Setup checklist (Okta, Entra ID, Google Workspace)

  1. Open Settings → Enterprise security and copy the generated SP Entity ID / Metadata URL and ACS URL (or OIDC Callback URL).
  2. Create a new SAML 2.0 or OIDC application in your IdP, set NameID format to emailAddress, and paste the SP coordinates.
  3. Paste your IdP Entity ID, HTTPS SSO URL, and X.509 PEM signing certificate (or OIDC Issuer, Client ID, Client Secret, Authorization URL, and Token URL) into Weond and click Save SSO Configuration.
  4. Test sign-in from the Weond login page via Sign in with Enterprise SSO before enabling Enforce SSO.

Cryptographic guarantees: SAML assertions are verified against your configured X.509 PEM certificate (XML-DSig DigestValue and SignatureValue), checked for exact Audience, Recipient, and NotBefore/NotOnOrAfter bounds, protected against XML DTD/XXE declarations and AssertionID replay attacks, and guarded against open redirects on RelayState. OIDC flows enforce PKCE (S256), signed HttpOnly state cookies, and AES-256-GCM encrypted client secrets at rest.

SCIM 2.0 Directory Sync

Automate member onboarding, role updates, and immediate access revocation using the RFC 7643/7644 SCIM 2.0 API (application/scim+json).

SCIM 2.0 Base URL & Endpoints
Base URL: https://api.weond.com/scim/v2
Authorization: Bearer weond_scim_<workspace_token>

GET    /scim/v2/ServiceProviderConfig
GET    /scim/v2/Users?filter=userName eq "alice@acme.com"
POST   /scim/v2/Users
PUT    /scim/v2/Users/{userId}
PATCH  /scim/v2/Users/{userId}   # {"Operations":[{"op":"replace","path":"active","value":false}]}
DELETE /scim/v2/Users/{userId}
GET    /scim/v2/Groups
POST   /scim/v2/Groups
PUT    /scim/v2/Groups/{groupId}
DELETE /scim/v2/Groups/{groupId}
  • Scoped Bearer Tokens: Generate workspace-scoped weond_scim_ tokens in Settings → Enterprise security. Raw tokens are displayed once and stored exclusively as SHA-256 hashes.
  • Automated Deprovisioning: Setting active: false (or calling DELETE /scim/v2/Users/{id}) removes the user from the workspace and immediately revokes all active Weond sessions. The sole workspace owner is protected against accidental lockout.
  • Group-to-Role Mapping: Naming IdP groups weond-role-admin, weond-role-developer, or weond-role-viewer automatically syncs members to the corresponding Weond RBAC role.

Workspace Security Policies, Region Defaults & Audit Retention

Configure hard runtime access controls per workspace via Settings → Enterprise security or GET/PUT /api/workspaces/{id}/security-policy:

  • Mandatory 2FA: Require all workspace members to have active TOTP 2FA enabled before accessing workspace projects, secrets, or deployments.
  • Session Lifetime (TTL): Cap active session age between 1 and 2,160 hours (default 168 hours / 7 days). Expired sessions receive session_expired_policy and must re-authenticate.
  • IP / CIDR Allowlist: Restrict workspace API and dashboard access to approved corporate VPN or office IPv4/IPv6 CIDR ranges (up to 100 entries).
  • Audit Log Retention: Set workspace audit trail retention between 7 and 3,650 days; expired entries are purged automatically.
  • Default Edge Region Policy: Pin new projects by default to global (Smart Placement), eu (EU Jurisdiction + weur hint), or us (North America hint).