Delegated Authority: Let an AI Agent Act for a User, Safely
I tried eight ways to use an agent's token, and only the allowed one worked.
Video #233 ยท Enterprise architecture and AI agents
Steps in the video
Files
- authority.py (23 lines)
- compare.py (35 lines)
- resource.py (19 lines)
- tokens.py (26 lines)
Tested with
Python 3.12.15
What this does not show
One authority, one user and eight cases I chose, with a made-up key and hand-made signing. The exchange trusts the agent's name and grants any scope the user has, for any service. No revocation, no user consent step, no real logins. Use a reviewed library in production.
Sources
Learning IT by Example.