The Simplest Way to Make Phabricator and SAML Work Like They Should

Published
Length
3 min read

Luis Felipe Dias

All posts

Pairing Phabricator and SAML lets your team log in to code tools with one identity. The identity provider checks the user and sends a signed token to your code app. This workflow stops password reuse across your engineering apps. Admins can add or remove user access from one central dashboard. Developers spend less time fixing broken passwords and more time writing code. When a person leaves the team, revoking their central account blocks them right away. How Phabricator and SAML handle login

Your coding agents run with your access.

Claude Code reaches prod with a developer's credentials, and approval prompts get clicked through. hoop.dev checks every query, masks sensitive data, and holds risky changes for a human.

Pairing Phabricator and SAML lets your team log in to code tools with one identity. The identity provider checks the user and sends a signed token to your code app.

This workflow stops password reuse across your engineering apps. Admins can add or remove user access from one central dashboard. Developers spend less time fixing broken passwords and more time writing code. When a person leaves the team, revoking their central account blocks them right away.

How Phabricator and SAML handle logins and permissions

Your code review app needs a clear way to trust external user accounts. When you set up Phabricator and SAML, the app acts as the service provider. Your main login portal acts as the identity provider for all staff.

A developer clicks the login button inside the code portal to start. The app sends a login request to the identity provider right away. The user logs in there and passes a two-factor check. Then, the provider sends a signed XML message back to the code app.

This message holds the user email, name, and unique ID string. The code app checks the digital signature using a public key you saved earlier. If the key matches, the app lets the user in and starts a session. It links the external identity to an internal user profile.

Still, SAML only proves who the user is during the initial login step. Inside the code tool, local project rules still control what each person can read or write. You must map identity groups or manage local spaces so people only see their own code.

Common failure modes and how to scope roles

Many teams run into trouble because Phabricator lacks native support for modern login standards. Community plugins or custom web server rules often bridge this gap in production. When these custom links break, teams often fall back to shared admin accounts.

SAML 2.0 + End-to-End Encryption: architecture patterns and best practices

Continue reading? Get the full guide.

Free. No spam. Unsubscribe anytime.

Shared accounts erase your audit trail and create huge security risks for the team. If three engineers share one admin login, you cannot tell who changed a repo rule. Broad API tokens also create risk when scripts need to read code or tasks.

Developers often create personal API keys that never expire and hold full user permissions. If a key leaks in a build log, an attacker gains full access to your repos. Unlogged database queries also happen when admins connect straight to the backend host to fix bugs.

To fix this, give every person and script a single, scoped role. Turn off local password logins once your central login flow works well. Keep only one break-glass admin account stored in a safe vault for emergencies.

Lock down network paths so users only reach the web app over encrypted links. Block direct traffic to the backend database and host servers from normal user networks. Rotate signing keys on a set schedule so old trust certs cannot be abused.

Review your active user list every month to catch orphaned accounts early. Since SAML only runs at login time, an old account might still hold active tokens. Clear out old session tokens and revoke unused API keys whenever someone changes teams.

Check database and API queries on the wire

Identity tools, roles, and network rules decide who opens a session. Setup alone cannot check what each query does or mask sensitive values in a response once a session starts. When workflows touch Postgres, MySQL, SQL Server, MongoDB, ClickHouse, Kubernetes APIs, SSH, or internal HTTP APIs, hoop.dev runs beside those services as an open-source proxy, a sidecar for your Postgres or API. It inspects requests coming in and results going back on the wire.

Your login details and client tools stay as they are while hoop.dev guardrails refuse bad deletes or drops before they run. On responses, hoop.dev data masking rewrites matched sensitive values in memory. Furthermore, hoop.dev holds SOC 2 Type II, is MIT licensed, and writes every query and decision to an audit trail that generates evidence for HIPAA, GDPR, and PCI DSS. See the source on GitHub.

Frequently asked questions

Does Phabricator support SAML out of the box?

No, the core app does not include a built-in SAML provider by default. Teams usually add a custom auth extension or handle logins at the web server level.

What happens if the identity provider goes offline?

Users with active sessions stay logged in until their local cookie expires. New logins will fail until the identity provider comes back online and responds.

How do CLI tools work when SAML is turned on?

Command line tools cannot follow browser redirects to finish a SAML login flow. Developers must log in through the web app first and create a scoped API token.

The query runs. The emails stay hidden.