---
title: "Why AI agents need identity: a practical look inside ThunderID"
description: "Why AI agents need their own identity, and how ThunderID handles agent identities, delegated access and MCP authorization. A source-based repository review."
url: https://prahas.me/insights/why-ai-agents-need-identity
author: Prahas Vichakshana
published: 2026-10-11
updated: 2026-10-11
---

REPOSITORY REVIEW · 02 · WRITTEN BREAKDOWN

# Why AI agents need identity. A practical look inside ThunderID.

Giving an AI agent a tool is easy. Deciding whose authority it carries, what it can access and when that access should end is harder. ThunderID brings those questions into the identity layer.

11 October 2026 · By Prahas Vichakshana · 8 min read

[Prefer to watch? **8 min 5 sec video review**](https://youtu.be/qdgIlOqndB4)

## INTRODUCTION · An agent can do the work. Who gave it permission?

Imagine an AI assistant that helps a small business handle customer enquiries. It reads an order, checks a delivery update and drafts a reply. The useful part is obvious: less time spent moving between systems.

Then the assistant needs access to the order database. Should it use the owner’s login? Can it see every customer? Can it change a delivery address, issue a refund or send the reply without review? And if something goes wrong, can you tell which person or agent authorised the action?

Those questions matter before the automation becomes part of everyday work. **ThunderID** is an identity and access management project that makes them central to its design. This breakdown looks at what its public sources describe, where the ideas could fit a business workflow and what still needs testing.

Why an agent needs its own identity

1.  **Accountability.** You can tell which agent took an action, and which person it was acting for.
2.  **Least privilege.** The agent gets only the access this task needs — not everything its owner can do.
3.  **Revocation.** You can switch one agent off without changing anyone’s password or breaking other tools.

## THE SHORTCUT · What usually happens instead

The quickest way to connect an assistant is to hand it an existing credential: the owner’s login, or one API key shared by every tool. It works on the first day. It also means the assistant can reach everything that credential can — orders, refunds, customer exports, settings — and every log line records the same name.

When something unexpected happens, you can’t tell whether the owner or the assistant did it. And switching the assistant off means changing a password or key that other people and tools still depend on.

![Animated comparison: a shared owner login opens orders, refunds, customers and settings and logs every action as the owner; an agent identity acting for Sam opens only orders for reading, is denied a refund, is named in every log line and can be revoked on its own.](https://prahas.me/insights/why-ai-agents-need-identity/shared-key.jpg)

Figure 1 — The shortcut versus an agent identity. With its own identity, the assistant reaches only what the task needs, every action is attributable, and it can be switched off without touching the owner’s account.

## THE PROJECT · An identity stack for people, agents and machines

The [ThunderID repository](https://github.com/thunder-id/thunderid) presents an open-source identity stack covering humans, AI agents and machines. Its source is licensed under Apache-2.0. The [project introduction](https://thunderid.dev/blog/introducing-thunderid/) says the team at WSO2 started it, drawing on its experience with identity software.

Think of this as infrastructure underneath an application. A customer portal, internal dashboard or automation still needs its own business logic. ThunderID supplies identity capabilities that those systems can integrate with: authentication, access management and configurable identity journeys.

The interesting design choice is giving an agent its own identity, alongside the person it may represent. That creates a way to ask more precise questions than whether an API key is valid.

## IDEA 01 · Separate the worker from the person it represents

The [agent guide](https://thunderid.dev/docs/guides/agents/) describes a record with an identifier, owner, credentials, attributes and lifecycle. Access can be assigned through roles and groups. The documented token patterns distinguish an agent acting independently, acting on behalf of a user and delegating to another agent.

In practice, delegation is a chain. Sam asks the support agent to look into an order; the support agent asks a shipping agent for a delivery update. A well-designed access token should let the shipping service see both facts — which agent is doing the work, and that it is ultimately working for Sam — so its permissions and its log entry can reflect the whole chain.

**Authentication answers who is calling. Authorization answers what that caller may do.** An agent passing the first check should still have to pass the second. A legitimate identity does not make every proposed action legitimate.

![Animated diagram: a request from support-agent acting for Sam passes an authentication check and an authorization check to read an order; a refund request passes authentication but is refused at authorization; a delegation chain runs from Sam to support-agent to shipping-agent.](https://prahas.me/insights/why-ai-agents-need-identity/two-gates.jpg)

Figure 2 — Two separate checks. A valid identity gets the request through the first gate; the action still has to be permitted at the second. The delegation chain keeps track of whom the work is for.

## IDEA 02 · Give permission to a task, not an entire business

ThunderID’s [authorization documentation](https://thunderid.dev/docs/key-concepts/authorization/) describes three building blocks. A *resource server* is the service being protected — here, the order service. *Permissions* (often called *scopes*, such as `orders:read`) name the kinds of access that service offers. *Roles* bundle permissions together for whoever is assigned them.

Tokens can also be targeted at one particular service through an *audience* claim — think of it as a stamp saying which service the token is for, so it can’t be reused somewhere else. According to the documentation, the scopes a client asks for are filtered against that service’s permissions and against the access assigned to the issuing application or agent.

![Animated diagram: an agent requests orders:read, orders:write and refunds:create; the orders service does not offer refunds:create and the agent's role does not allow orders:write, so the issued token carries only orders:read for the orders service; the token is rejected by the refunds service, and the API still shows only Sam's shop's orders.](https://prahas.me/insights/why-ai-agents-need-identity/scoped-token.jpg)

Figure 3 — Ask for three permissions, receive one. The token is stamped for one service, and the API still decides which records that permission covers.

Applied to an order assistant, the integration should make three boundaries explicit. The table below is an illustrative design, not a ThunderID configuration or a tested feature.

| Boundary | Question to answer | Illustrative order assistant |
| --- | --- | --- |
| Identity | Who is acting, and for whom? | A named support agent acting for a signed-in staff member |
| Data | Which records may it reach? | Only orders that staff member is allowed to view |
| Action | What may it do with those records? | Read an order and prepare a reply; no refund permission |

A scope such as permission to read orders is only part of the answer. The business API still needs to enforce which customer’s or organisation’s orders are visible. If one system serves several businesses, a broad read permission should not accidentally become access to every business’s data.

## IDEA 03 · Connecting a tool is only the beginning

Model Context Protocol (MCP) gives an assistant a standard way to discover and call tools. In my [Storytold review](https://prahas.me/insights/can-ai-replace-adobe), MCP was what let an agent drive creative apps directly. This is the other half of that story: once an agent *can* call a tool, something has to decide whether it *may*.

ThunderID’s [MCP authorization guide](https://thunderid.dev/docs/guides/mcp/overview/) describes how it can act as the authorization server for an MCP server reached over HTTP: clients obtain access tokens, and the MCP server checks tool permissions before running a handler.

![Animated diagram: ThunderID issues a token to an AI assistant acting as an MCP client; the MCP server checks permissions before any tool runs, so get\_order runs while refund\_order is refused with a 403 and never runs; a system prompt asking the assistant to be careful is crossed out as not an enforcement point.](https://prahas.me/insights/why-ai-agents-need-identity/mcp-check.jpg)

Figure 4 — The refusal happens in the service. The MCP server checks the token before a tool handler runs; an instruction in the prompt is not a control.

The same guide distinguishes that role from ThunderID’s own administrative MCP endpoint, which lets clients manage identity resources. Securing your order tools and giving an assistant access to identity administration are different decisions. The second deserves especially narrow access.

The documented OAuth pattern applies to MCP servers reached over HTTP. Local MCP servers that an app launches on the same computer (connected through standard input and output) use a different credential model. “Supports MCP” should therefore lead to a conversation about the actual client, connection type and enforcement points.

A useful implementation question is simple: **where does the tool refuse an unauthorised request?** A prompt telling an assistant to behave carefully cannot replace a check in the service that reads or changes the data.

## IDEA 04 · Access should be easy to end — and easy to explain

Access also needs an ending. Because the agent record in ThunderID’s guide has its own credentials and lifecycle, the agent can be managed separately from the people it works for. That makes three routine operations possible without disrupting anyone else:

-   **Revoke one agent.** Disable the support agent and the owner’s login, other staff and other tools keep working.
-   **Rotate its credentials.** Replace the agent’s secret on a schedule, or immediately if it may have leaked, without a company-wide password reset.
-   **Reconstruct what happened.** If each action records the agent, the person it acted for and the permission used, you can answer “who did this?” from the log rather than from memory.

One practical caveat: tokens that were already issued may keep working until they expire, and services may cache decisions. Short token lifetimes keep that window small — and it is worth testing how long it actually is in your setup.

## ILLUSTRATIVE WORKFLOW · Let an assistant prepare the reply before it can act

Consider a support assistant for a shop. This is a proposed integration scenario, not a built-in ThunderID workflow or a deployment I have tested.

1.  **A staff member signs in.** The application establishes who is asking the assistant to help and which business records that person may access.
2.  **The assistant gets limited access.** Its identity and token allow the specific lookup required for the enquiry.
3.  **The order service checks the request.** It validates the token and checks access to the requested order before returning information.
4.  **The assistant prepares a draft.** It proposes a reply for the staff member to review.
5.  **A person approves the consequential action.** Sending the message or changing an order passes through a separate application control.

![Animated workflow: Sam signs in, the assistant gets limited access, the order service checks the request, the assistant drafts a reply, and the reply waits for Sam's approval before it is sent; steps one to three belong to the identity layer and steps four and five to the application.](https://prahas.me/insights/why-ai-agents-need-identity/workflow.jpg)

Figure 5 — The assistant drafts; a person decides. Identity infrastructure covers who is acting and with which access; the draft screen, approval step and business rules belong to your application.

Identity infrastructure can support the access boundary. The draft screen, approval step and business rules belong to the application. User consent to grant a scope is also different from approving a particular refund or message.

The point of starting here is that success can be inspected: the right record was read, an incorrect request was denied and a person remained responsible for the action. Those checks are more useful than an impressive demo with unrestricted credentials.

**Have a repetitive task like this?** Start with the records an assistant needs and the decisions a person should keep. That is a useful brief for a business tool or automation.

[Talk it through with me →](https://prahas.me/#contact)

## WHAT TO TRY · Test the denied request as well as the happy path

A useful first evaluation is a single read-only task using a pinned release and synthetic records. The minimum useful checks are:

-   The intended agent can read the intended record.
-   The same agent cannot read another customer’s or organisation’s record.
-   A token for a different service, or an expired token, is rejected.
-   The agent cannot perform a write it has not been granted.
-   Removing access has the expected effect, including any limits from token lifetime or caching.
-   The integration records enough information to reconstruct who acted for whom without logging credentials.

![Animated checklist: six tests run in turn; the intended read is allowed and five unauthorised requests are correctly refused, for six out of six behaving as expected.](https://prahas.me/insights/why-ai-agents-need-identity/test-matrix.jpg)

Figure 6 — A good first test run is mostly refusals. One request should succeed; every request the agent shouldn’t make should fail, and each failure counts as a pass.

There is operational work too. The production guidelines say the defaults are for development and evaluation. They call for production database configuration, trusted TLS, protected secrets, restricted administrative endpoints and external rate limiting for the documented Direct API endpoints. [Read the deployment requirements before adopting it.](https://thunderid.dev/docs/deployment/production-guidelines/)

Apache-2.0 source availability gives a team room to inspect and adapt the software. Hosting, integration, maintenance and incident response still need an owner. A successful local test would be evidence for that test, not proof that the whole business workflow is ready.

## ALSO IN THE PROJECT · Runtime, identity journeys and cryptography

**A headless runtime with designed journeys.** The [introduction](https://thunderid.dev/blog/introducing-thunderid/) describes a Go runtime with an API-first approach, plus a console, SDKs and a visual flow designer for composing journeys such as sign-in, registration and account recovery. Its [1.0 announcement](https://thunderid.dev/blog/thunderid-1-0/), dated 2 September 2026, describes the first generally available release and exporting resources as YAML that is locked when the runtime starts. That could make identity configuration reviewable alongside application changes — but a team still needs to decide who approves a permission change and how to recover from a bad one.

**Configurable cryptography.** The 1.0 announcement also describes configurable algorithms, including ML-DSA for signing tokens and hybrid post-quantum TLS. Those are maintainer-reported capabilities, and the [production guide](https://thunderid.dev/docs/deployment/production-guidelines/) documents RSA and ECDSA signing keys in the default configuration. Support for an algorithm does not establish that every deployment uses it, so check the release, settings, clients and infrastructure before making a claim about a particular system. For the shop example, the first decisions are still permissions, credentials, approval and recovery.

## QUICK ANSWERS · Frequently asked questions

### Do AI agents need their own identity?

Once an agent can read real data or take actions, yes. Its own identity makes every action attributable to that agent and the person it acts for, limits access to what the task needs, and lets you switch it off without changing anyone’s password. A shared login or API key gives you none of those.

### Is ThunderID free to use?

The source is licensed under Apache-2.0, so you can use, inspect and adapt it. Running it is not free of cost: hosting, integration, maintenance and incident response still need an owner.

### Does it work with MCP?

Its MCP guide describes acting as the authorization server for MCP servers reached over HTTP, with the MCP server checking tool permissions before a handler runs. Local MCP servers connected through standard input and output use a different credential model.

### Is it ready for production?

The project announced its first generally available release (1.0) on 2 September 2026. Its production guidelines say the default settings are for development and evaluation, and list what to configure before going live. This review did not include a deployment test.

### Who makes it?

The project introduction says the team at WSO2 started ThunderID, drawing on its experience with identity software. It is another team’s project; this is an independent, unsponsored review.

## THE TAKEAWAY · Useful autonomy starts with a clear boundary

**My take:** An agent’s identity, the person it represents and the action it may perform should be separate, reviewable decisions. ThunderID offers a concrete project through which to explore that design. The useful next step is one small workflow with explicit permissions and a tested refusal path.

What business task would you let an AI agent handle — and which action would still need your approval?

**Prahas Vichakshana**

Independent AI & digital studio. Each week I review a repository and ask what it could mean for the websites, automations and tools small businesses rely on.

[Subscribe on YouTube ↗](https://www.youtube.com/@PrahasMe?sub_confirmation=1)[RSS feed](https://prahas.me/insights/rss.xml)[All insights](https://prahas.me/insights)

### Explore the sources

[ThunderID repository and Apache-2.0 licence ↗](https://github.com/thunder-id/thunderid)[Project introduction ↗](https://thunderid.dev/blog/introducing-thunderid/)[ThunderID 1.0 release announcement ↗](https://thunderid.dev/blog/thunderid-1-0/)[Agent identity guide ↗](https://thunderid.dev/docs/guides/agents/)[Authorization concepts ↗](https://thunderid.dev/docs/key-concepts/authorization/)[MCP authorization guide ↗](https://thunderid.dev/docs/guides/mcp/overview/)[Production deployment guidelines ↗](https://thunderid.dev/docs/deployment/production-guidelines/)[Watch the video review on YouTube ↗](https://youtu.be/qdgIlOqndB4)

ThunderID is another team's project, started by the team at WSO2. This is a source-based review, not a hands-on deployment, benchmark or security audit; the diagrams are illustrative, not ThunderID's interface. Sources checked on 11 October 2026. The written article is a companion to the video, not a transcript. I use Google NotebookLM to generate the video deep dives from source material; the video is not sponsored, and its recording date and reviewed commit were not supplied. The cover artwork is AI-generated. Video availability follows the channel's release schedule.
