Metadata-Version: 2.4
Name: aip-identity-verify
Version: 0.1.1
Summary: Agent Identity Protocol - Hub Verification Library
Project-URL: Homepage, https://github.com/agentscope-ai/agent-identity
Project-URL: Documentation, https://github.com/agentscope-ai/agent-identity
Project-URL: Repository, https://github.com/agentscope-ai/agent-identity
Author-email: Tongyi Lab <yilei.z@alibaba-inc.com>
License-Expression: Apache-2.0
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: Security
Classifier: Topic :: Software Development :: Libraries
Requires-Python: >=3.10
Requires-Dist: cryptography>=41.0
Requires-Dist: httpx>=0.25
Requires-Dist: pyjwt[crypto]>=2.8
Provides-Extra: dev
Requires-Dist: pytest-asyncio>=0.23; extra == 'dev'
Requires-Dist: pytest>=7.0; extra == 'dev'
Description-Content-Type: text/markdown

# aip-identity-verify

Agent Identity Protocol verification library — for hubs and services to verify AI agent JWT tokens.

## Installation

```
pip install aip-identity-verify
```

## Quick Start

```python
from aip_identity_verify import AIPVerifier

verifier = AIPVerifier(
    trusted_providers=["copaw.ai"],
    audience="https://my-hub.example.com",
)

# In your request handler:
agent = await verifier.verify(request.headers["Authorization"])
print(f"Agent: {agent.agent_id}, Principal: {agent.principal}")
```

## Documentation

See the [Agent Identity Protocol](https://github.com/agentscope-ai/agent-identity) repository for full documentation.
