workos
Audited by Runlayer on Mar 8, 2026
Risky tool definition detected
Risky tool definition detected
- Return 200 from webhook handler IMMEDIATELY (WorkOS times out at 10s) — process events asynchronously after acknowledging - Webhooks are NOT mandatory — the Events API (workos.events.listEvents) is a fully supported pull-based alternative for batch processing - Webhook signature verification must use the RAW request body, not parsed JSON — parsing first breaks the signature - Use dsync.* wildcard for Events API filter, not just "dsync" — bare string returns nothing - Events API after param mus
Risky tool definition detected
Risky tool definition detected
- Auth0 bcrypt hashes must start with `$2a$`, `$2b$`, or `$2y$`.
Risky tool definition detected
Risky tool definition detected
Risky tool definition detected
Risky tool definition detected
- If Descope used a hashing algorithm not supported by WorkOS, you must fall back to the password reset flow.
Risky tool definition detected
- Do NOT set the password field when importing users. Users imported without passwords are automatically flagged for password reset.
Risky tool definition detected
Email providers check if sender addresses are real — no inbox means higher spam score. - Spam trigger words in your team name or organization names (e.g., "FREE", "WINNER", "URGENT") damage deliverability even with perfect DNS config.
Risky tool definition detected
Risky tool definition detected
Tool passed security scan
Malicious tool definition detected
Tool: workos/references/workos-integrations.md [2/3] Description: Verify SSO connection is active curl -s -H "Authorization: Bearer $WORKOS_API_KEY" \ https://api.workos.com/connections | jq '.data[] | select(.state == "active") | .name' # Check directory sync connections curl -s -H "Authorization: Bearer $WORKOS_API_KEY" \ https://api.workos.com/directories | jq '.data[] | {id, name, state}' ``` Checklist: - [ ] Connection appears in WorkOS Dashboard with "Active" (SSO) or "Linked" (directory)
Risky tool definition detected
- WorkOS may retry webhook deliveries. All event processing must be idempotent — deduplicate using `event.id`, not webhook delivery ID.
Risky tool definition detected
- Cookie domain must be set to `.yourapp.com` (with leading dot) for subdomain compatibility. Incorrect cookie domain causes silent auth failures where login redirects back to `workos.com`.
Risky tool definition detected
Risky tool definition detected
Use whichever function the installed SDK version exports — do NOT rename existing working imports. ## Verification Checklist (ALL MUST PASS) Run these commands to confirm integration. **Do not mark complete until all pass:** ```bash # 1.
Risky tool definition detected
Risky tool definition detected
- TOTP enrollment requires both `totp_issuer` and `totp_user` parameters. Omitting either causes a 400 error.
Risky tool definition detected
Risky tool definition detected
defmodule {AppName}Web do def controller do quote do use Phoenix.Controller, formats: [:html, :json] import Plug.Conn end end defmacro __using__(which) when is_atom(which) do apply(__MODULE__, which, []) end end ``` ### Create controller Create `lib/{app}_web/controllers/auth_controller.ex`: ```elixir defmodule {AppName}Web.AuthController do use {AppName}Web, :controller def sign_in(conn, _params) do client_id = Application.get_env(:workos, :client_id) redirect_uri = "http://localhost:4000/auth/
Risky tool definition detected
Risky tool definition detected
WORKOS_REDIRECT_URI=http://localhost:8000/auth/callback ``` Also ensure `config/workos.php` reads these env vars correctly. Check README for exact config structure.
Risky tool definition detected
Check sign-in is on user gesture (click handler) grep -rn "signIn\|sign_in" src/ *.js *.html 2>/dev/null # 4.
Risky tool definition detected
Risky tool definition detected
Tool passed security scan
Tool passed security scan
Tool passed security scan
Tool passed security scan
Tool passed security scan
Tool passed security scan
Tool passed security scan
Tool passed security scan
Tool passed security scan
Passed Files (6)Click to expand
Tool passed security scan
Tool passed security scan
Tool passed security scan
Tool passed security scan
Tool passed security scan
Tool passed security scan