20.14 Employees through their company
- Approved by
- Panaversity ·
Going further. Built only in Lab 20's optional tasks. It builds on Chapter 18's sign-in, so read it after 20.16 if you want it.
In everyday life. A new employee gets one badge at the front desk. It opens the doors the company decided, in every building. When she leaves, the front desk cancels one badge, and every door stops opening.
What you will learn. How a company's own sign-in system can decide who may use your connector, and what your sign-in server and connector check.
Why it matters. In Chapter 18, each person approved the connector for themselves, on the consent screen (18.2). Chapter 18's field guide named single sign-on, where Cedar Ridge's own login proves who the person is, but each person still approves. Cedar Ridge is growing. Hannah, the controller, wants one place to give and remove access, and a record of who was allowed in.
One request, start to finish. Cedar Ridge signs everyone in through its identity provider, the system it uses for work accounts, such as Okta or Microsoft Entra ID.
- Luis signs in to his AI app with his work account, once, through single sign-on.
- The AI app asks Cedar Ridge's identity provider for a special pass, an Identity Assertion JWT Authorization Grant, or ID-JAG.
- The identity provider checks Cedar Ridge's policy: is Luis in a group allowed to use Brightline's connector? He is, so it issues the ID-JAG.
- The AI app trades the ID-JAG at Brightline's sign-in server for an ordinary access token. Luis sees no consent screen.
- The connector checks that token exactly as in Chapter 18: the seal and the audience (18.6), the scope (18.7) and the company (18.11).

Figure 20.14. An employee connects through their company. The company decides who may connect, and the connector still checks every call.
What does each server check?
The extension is io.modelcontextprotocol/enterprise-managed-authorization, and it is Stable.1 The work splits between two servers:2
- The sign-in server at Brightline says in its metadata that it requires the extension. It checks each ID-JAG against the identity provider's published keys, with its audience, issuer and expiry, maps its claims to the person and their permissions, and issues an access token.
- The connector checks that access token on every call, and decides what this person may do, as before. Nothing about a screen or a click changes.
The AI app must not send the person to Brightline's sign-in page in this flow. It trades the ID-JAG instead.2
What happens when Luis leaves?
Hannah disables his work account. This is 18.14's "remove a person", decided at Cedar Ridge instead of in Brightline's sign-in server. The MCP project says revoking access at the identity provider takes effect at once, across all AI apps.2 But a token already issued is checked by Brightline's connector until it expires. So keep access tokens short-lived, and test how long it really takes before Luis's last call fails.
How do you link a work identity to an existing account?
Each ID-JAG carries a subject claim, a stable id for the person, and may carry an email. Use the subject, with the identity provider that issued it, as the stable identifier. Use the email only to find an account created before this sign-in was set up.2 A company can give a former employee's email address to someone new, so an email alone must never open someone else's records.
Where is it supported?
Support varies by AI app, and it usually needs the company's IT team to set it up too.2 On Claude Team and Enterprise, an administrator can authorize a connector once for everyone, if the connector supports it.3
At work. In Lab 20, Task 13 (optional), the builder adds a test identity provider to the sign-in server and runs Luis's sign-in and removal.
The operating rule: when a company manages sign-in, let its identity provider decide who may connect, check every ID-JAG at your sign-in server, link people by issuer and subject, and keep tokens short so removal takes effect soon.
Check yourself
Question 1 / 3
0 answered
Cedar Ridge uses its identity provider for sign-in. What does Luis's AI app trade at Brightline's sign-in server?
Sources
- Owner
- Panaversity