The Simplest Way to Make Backstage and Onelogin Work Like They Should

Published
Length
3 min read

Luis Felipe Dias

All posts

Integrating backstage and onelogin links your developer portal to your central identity provider. This setup lets engineers log in once to view services, docs, and tools. Teams use the portal to track software ownership and run daily tasks. OneLogin stores the user list, group memberships, and security rules for the company. When you join the two tools, the portal knows who each user is. It also knows which team owns each service in your catalog. How backstage and onelogin share user data Th

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.

Integrating backstage and onelogin links your developer portal to your central identity provider. This setup lets engineers log in once to view services, docs, and tools.

Teams use the portal to track software ownership and run daily tasks. OneLogin stores the user list, group memberships, and security rules for the company. When you join the two tools, the portal knows who each user is. It also knows which team owns each service in your catalog.

How backstage and onelogin share user data

The login flow starts when an engineer opens the developer portal. The portal sends the user to OneLogin to check their identity. The user enters their password and passes a second factor check. OneLogin then sends a signed token back to the portal.

This token holds the user email, name, and group list. The portal reads this token and matches the user to a catalog entity. If the match works, the portal creates a session for the user. If the match fails, the portal blocks the login right away.

Login checks are only half of the setup. The portal also needs a full list of users and teams inside the catalog. A background job pulls user and group records from the OneLogin API. This job creates user profiles and team pages inside the catalog.

Now every software service shows its true owner based on live directory data. When a person changes teams in OneLogin, the catalog updates on the next sync. You do not need to edit YAML files by hand when staff move around.

Common failure modes and role scoping

Many teams make mistakes when they first link these two systems. The most common mistake is using a broad admin API key for the sync. If an attacker steals that key, they can edit users in your identity store. Always create a read-only API key that can only read users and groups.

Another common issue is skipping identity resolvers during the login setup. By default, some setups match users by their display name or local prefix. Two people can share a name, or an email prefix might change. Always match users by a stable ID or a verified work email address.

OneLogin + End-to-End Encryption: architecture patterns and best practices

Continue reading? Get the full guide.

Free. No spam. Unsubscribe anytime.

Teams also run into trouble with shared service accounts for backend tasks. When a plugin runs a task using a shared token, you lose audit trails. The logs show the shared account name instead of the real engineer. You cannot tell who ran a database query or who changed a server setting.

Group mapping can also break if your directory has messy group names. Sync only the specific groups that relate to engineering teams and service ownership. Leave out broad company groups like all-hands email lists or office location groups. This keeps the catalog clean and makes permission checks much faster.

Keeping portal actions safe in production

Once users log in, they often trigger backend actions from the portal. They might spin up a test database or check logs on a live server. Passing raw database keys or cloud tokens to portal plugins creates a big risk.

Keep long-lived secrets out of your portal config files. Scope every backend role to the smallest set of actions it needs. Set short time limits on portal sessions so old tokens expire fast. Check your audit logs every week to see which users run sensitive tasks.

When engineers view live data through portal plugins, sensitive fields can leak. Data masking rewrites matched fields like emails, phone numbers, card numbers, and national IDs in results. This step protects customer privacy during daily debug work.

Add runtime guardrails and masking beside your databases and APIs

Login rules, role grants, and CI checks govern who connects to your stack. Yet any allowed script, engineer, or AI agent still runs commands with the full scope of its role. For workloads on Postgres, MySQL, SQL Server, MongoDB, ClickHouse, Kubernetes, SSH, or internal HTTP services, hoop.dev sits beside the service as an open-source proxy, a sidecar for your database or API.

Before a query runs, hoop.dev guardrails check the statement against your rules. An AI Analyzer you configure can score intent or hold risky calls for human review. Next, hoop.dev data masking rewrites sensitive fields in responses, and each verdict is logged per listener. Explore the MIT-licensed project on GitHub.

Frequently asked questions

How do we keep team ownership updated in the portal?

Set up a scheduled sync job that reads group data from the OneLogin API. This job updates user and group entities in the catalog on a regular timer.

What permissions does the sync API key need?

Give the key read-only permissions for user and group records only. Never give the portal a key that can write or delete identity data.

Why does login fail when a user is in OneLogin?

The portal needs a matching user entity in the catalog to complete the sign-in. Run the directory sync first or check that the email fields match.

The query runs. The emails stay hidden.