SSO Protocols

Published
Length
3 min read

Luis Felipe Dias

All posts

SSO protocols let users log into one identity provider and open many work tools. Standards like SAML and OpenID Connect pass signed tokens to verify user identity. Most teams link their directory groups to coarse tool roles during setup. When those roles are too broad, every member gets full write rights across databases. How sso protocols verify identity across tools Single sign-on works through a trust link between an identity provider and a target tool. The identity provider holds user acc

Emergency Access Protocols + Cross-Domain SSO: the complete guide

Architecture patterns, implementation strategies, and security best practices. Delivered to your inbox.

Free white paper. No spam. Unsubscribe anytime.

SSO protocols let users log into one identity provider and open many work tools. Standards like SAML and OpenID Connect pass signed tokens to verify user identity. Most teams link their directory groups to coarse tool roles during setup. When those roles are too broad, every member gets full write rights across databases.

How sso protocols verify identity across tools

Single sign-on works through a trust link between an identity provider and a target tool. The identity provider holds user accounts, passwords, and group memberships in one central place. The target tool trusts signed messages from that provider instead of storing local passwords.

SAML is an older standard built for web portals and enterprise software. It passes XML messages through the user's browser during the login flow. The message contains the user's email and group list, signed with a private key. The target tool checks the signature with a public key before starting a session.

OpenID Connect, or OIDC, sits on top of the OAuth framework for modern apps. It uses lightweight JSON tokens and standard web API calls to check user identity. Mobile apps, command-line tools, and single-page web apps often rely on OIDC flows. Both standards let a team manage MFA and user removal in one place.

Choosing between SAML and OpenID Connect for your stack

Your choice of protocol depends on the tools your engineers use every day. Many legacy admin consoles and cloud dashboards still need SAML for group role mapping. You export metadata files from both sides and trade certificates to finish the link. Once linked, the provider sends group attributes each time a user signs in.

OIDC fits better when developers log in from a terminal or a modern web app. The workflow redirects the user to a browser window to complete the login check. After the check passes, the local client receives a short-lived JSON token. The client sends this token with requests to prove who owns the session.

Kerberos and LDAP also show up in older internal networks and server fleets. These older setups require direct network paths to domain controllers and strict ticket rules. Most cloud teams prefer SAML or OIDC because they run over standard HTTPS traffic.

Emergency Access Protocols + Cross-Domain SSO: architecture patterns and best practices

Continue reading? Get the full guide.

Free. No spam. Unsubscribe anytime.

Where single sign-on stops during live database and server sessions

SSO protocols solve the problem of proving who a person is at login time. When an engineer leaves the company, you disable one account to block new logins. You also enforce strong MFA rules across every connected app from one admin screen.

Still, the login handshake stops the moment the target tool starts a session. SSO maps an identity group to a static database role or server user account. Once inside a database or shell, the protocol does not inspect individual commands. Everyone mapped to a read-write role can run a drop table statement without checks.

Standard SSO also does not filter sensitive data returned by a SQL query. If a table holds customer emails, phone numbers, or card numbers, results arrive in plain text. SSO logs show when a user logged in, not which queries they ran afterward. Teams need command-level controls to approve risky actions and rewrite sensitive fields in results.

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 sits inline in the wire protocol beside those services as an open-source proxy, a sidecar for your Postgres or API. On every query an AI agent or engineer runs against production, hoop.dev decides to pass, mask, block, or hold it for human review.

Your login details and client tools stay as they are while hoop.dev guardrails refuse bad deletes or drops before they run, and hoop.dev data masking rewrites matched sensitive values in responses 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

What is the main difference between SAML and OIDC?

SAML uses XML messages sent through a browser to sign users into web apps. OIDC uses JSON tokens and REST APIs, which works well for web and CLI tools.

Does single sign-on control which SQL queries an engineer can run?

No, SSO only checks user identity at the start of a session and assigns a role. After login, the database role decides which tables and commands the user can run.

Can a team use both SAML and OIDC with the same identity provider?

Yes, modern identity providers support both standards at the same time from one directory. You can use SAML for older web dashboards and OIDC for developer tools and APIs.

Save the open-source gateway.

hoop is MIT-licensed infrastructure for controlling how AI agents reach production data. Star hoophq/hoop so you can inspect it, deploy it, or share it when your team starts governing agent access.