domain: workos.com · 4 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗
Steps
Create an organization + SSO connection (admin portal link lets the customer's IT self-configure SAML/OIDC)
Redirect to /sso/authorize with client_id, organization (or connection), redirect_uri
Exchange the code at /sso/token → profile (id, email, raw attributes)
Provision/match the user by email or idp_id; store organization id for tenanting
Known gotchas
Match users by immutable idp_id, not email — corporate emails change and SAML emails can be edited by the IdP admin
Each customer org needs its own connection; the admin portal saves you from doing SAML metadata support by hand
Test with the WorkOS test IdP before sending the portal link to a real customer
Give your agent this knowledge — and 15,500+ more routes
One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus:
claude mcp add --transport http waymark https://mcp.waymark.network/mcp
Need this verified for your stack — or a route we don't have yet?