Skip to content

For someone adding agents

An identity for each agent, in your customer’s realm.

The agent is not a shared key.

Words

  • Agent client. A client that is registered for one named agent. It cannot sign in with a browser.
  • Agent principal. A user that is marked as an agent. It is an existing user who signs in through a connection. It is a user, not a client.
  • Agent access. The account-wide agent switch. It is set for each account and is off by default.
  • MCP discovery template. It returns a template for your own MCP server.

Five steps

  1. Turn on agent access. Agent access is the account-wide switch. It is off by default. While it is off, no agent client can be registered. Turning it off disables every existing agent client in the sign-in service, so none can get a new token. Tokens already minted stay valid until they expire.
  2. Register one agent client. Register one agent client in that customer’s realm, from the API or the dashboard. A client with a secret gets the secret once, and RealmSSO’s database does not keep it. Or there is no stored secret: the agent presents a token its platform issued. The issuer must be public and use https.
  3. Read the four attribution claims. An agent client’s access tokens carry four attribution claims: agent, agent_source, agent_owner and agent_parent. They say who acted, never what the agent may do. Your server must still check each token and decide the call.
  4. Let the identity provider vouch for an agent, if you need that. An agent principal can sign in through the assertion grant. The assertion grant works on OIDC connections only, and stays off until the account’s agent access and the connection’s assertion grant are both on.
  5. Copy the MCP discovery template. The configuration route returns the customer’s realm as an authorization server and an RFC 9728 template for your own MCP server to fill in.

Read next