Home · Designing an AI Gateway for Enterprises · Part 5 of 17

One gateway, many identity worlds

Bringing many identity sources into one AI gateway.

identitysecurity

Most enterprise AI gateways quietly assume one directory: the company's. Reality is messier. Employees sit in one directory, contractors in another, partners in a third, and now and then somebody has only a personal account. If your gateway speaks just one of those, you've built a gateway for one customer.

I wanted a product that doesn't care where you came from.

One issuer, many sources

The gateway trusts exactly one thing: a single token issuer. In front of that issuer sits an identity federation layer, the part that knows how to talk to many identity sources. The gateway never learns where a person came from. It only learns who they are and what they belong to.

Corporate directory Partner directory Another cloud Personal account Identityfederation one issuer Gateway Allowed?Whichlimits?
Add a new identity source without touching the gateway.

Why bother

The same identity opens both halves

Identity isn't only for the door. The same sign-in decides what a person sees in the portal: people see their own usage, administrators see everyone's. One identity, two halves of one product.

That sounds obvious until you've seen the alternative, where the gateway and its dashboard each keep their own idea of who someone is and quietly disagree. The disagreement always surfaces on a Monday morning, in front of someone who controls a budget.

Two lessons that cost me time

  1. Separate "who are you" from "what may you do." Signing in proves identity; membership decides access. Someone who signs in successfully but belongs nowhere should get a polite, clear no, not a mystery. And the reverse also holds: access should never be inferred from the fact that somebody has an account.
  2. Don't merge identities quietly. The same human arriving from two sources is two identities until someone decides otherwise. Silent merging looks helpful and ends up in the audit conversation, where "the system decided they were the same person" is not an answer anyone wants to give.

What I'd check first

If you're building something similar, start by listing the identity worlds your real users live in, not the ones your slide deck assumes. Ask who signs in with what today, who is a guest, and who has more than one account. The answers almost always include a case the first design didn't cover, and it is much cheaper to learn that before the issuer is chosen than after.

Why this widens the audience

A gateway tied to one vendor's directory is a gateway for that vendor's customers. A gateway that treats identity as a pluggable layer is useful to a consultancy with guests, a company after an acquisition, a partner network, or a team with a mix of everything. The model providers don't care. The finance team cares a great deal, because "who spent what" only works if "who" survives contact with real organisations.

The result is a product that's useful well beyond a single cloud's user base, which is what made me want to write all this down.

The product should know who you are and what you belong to, never where you came from.

Was this useful?

Want to discuss this? Connect with me on LinkedIn.

Next: the middleware that counts every token.