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

Published
Length
3 min read

Luis Felipe Dias

All posts

Setting up port and saml lets your team log into your internal portal with one identity. This link connects your identity provider to your software catalog and self-service forms. Platform teams use Port to build a clear catalog of apps and services. Engineers visit this portal to check service health and run daily tasks. When you add SAML, your identity provider handles every login request. Users do not need separate passwords for the portal. Your security team can manage all user accounts fro

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.

Setting up port and saml lets your team log into your internal portal with one identity. This link connects your identity provider to your software catalog and self-service forms.

Platform teams use Port to build a clear catalog of apps and services. Engineers visit this portal to check service health and run daily tasks. When you add SAML, your identity provider handles every login request. Users do not need separate passwords for the portal. Your security team can manage all user accounts from one central place.

How port and saml share login data and roles

The login flow between these two systems follows a standard trust path. First, an engineer opens the portal and enters a work email. The portal sees the email domain and sends the user to the identity provider. Next, the identity provider checks the user password and multi-factor token. Once the check passes, the provider builds a signed XML message.

This signed message is a SAML assertion. It holds the user email, name, and group names. The browser sends this signed message back to the portal. The portal checks the digital signature against a stored public certificate. If the signature matches, the portal lets the user in.

Group names inside the message control what the user can see and do. You can map identity provider groups to specific portal roles. For example, a backend group can get edit rights on backend service pages. A junior team group might only get read rights on the catalog. Every time a user logs in, the portal updates their group list.

Common login mistakes and how to scope portal roles

Many teams stop after they finish the basic login setup. They map broad groups and give too many users admin rights in the portal. When everyone has admin rights, anyone can edit catalog data or trigger risky actions. You should split your identity groups by job role and team boundary.

Shared service accounts create another big risk for platform teams. Sometimes teams use one shared login to test portal views or run scripts. If an issue happens, your audit logs will only show the shared account name. You will not know which person ran the action. Always require every engineer to log in with their own SAML identity.

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

Continue reading? Get the full guide.

Free. No spam. Unsubscribe anytime.

Another gap appears when portal forms trigger actions against live databases or cloud servers. The portal knows who clicked the button based on SAML data. Still, the backend runner often uses one static database password or broad API key. The database log only sees that single runner account, not the actual user.

To reduce risk, scope every backend runner to the smallest possible role. Give each runner its own network path and limit which commands it can run. You should also review your SAML group mappings every quarter. Remove old groups and check that public certificates are up to date before they expire.

Finally, watch out for mismatched attribute names between your identity provider and your portal. If the group attribute name changes in the provider, users lose their portal roles. Keep your attribute map simple and test changes with a test user first.

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

What happens when a user leaves the company?

When you disable the user in your identity provider, SAML blocks new portal logins. You should also keep session lifetimes short so active portal sessions end fast.

Can we map multiple SAML groups to one portal role?

Yes, your identity provider can send a list of groups in the login message. The portal reads this list and combines the permissions from each matched role.

Why do portal backend actions lose user identity at the database?

SAML only handles the login between the user and the web portal. When the portal runs a backend job, that job usually uses its own static service key.

The query runs. The emails stay hidden.