Skip to content

Latest commit

 

History

History
18 lines (11 loc) · 903 Bytes

File metadata and controls

18 lines (11 loc) · 903 Bytes

Agent Identity Quickstart — Python Samples

This directory contains four Python-based sample implementations demonstrating how to authenticate AI agents with Asgardeo and securely interact with MCP servers. Each scenario showcases a different authentication model.

Available Scenarios

agent-auth-flow/

  • AI agent authenticates on its own using Agent Credentials.
  • No user interaction or redirection is involved.
  • Ideal for system agents or background tasks acting independently.

on-behalf-of-flow/

  • AI agent authenticates on behalf of a user using Authorization Code + PKCE.
  • The user signs in through Asgardeo, and the agent exchanges the authorization code for an OBO token representing the user.

Each directory includes its own README with setup instructions, environment variable configuration, and runnable examples using modern agent development frameworks.