Current collected state Current
Observed since 20 Oct, 22:28 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
Agentity OIDC authentication — verify human owners via Google, GitHub, Apple, Microsoft
OIDC authentication plugin for Agentity. Verify human ownership of agent identities via Google, GitHub, Apple, and Microsoft login.
pip install agentity-auth
Mount the router on your FastAPI application:
from fastapi import FastAPI
from agentity_auth import router as auth_router
app = FastAPI()
app.include_router(auth_router)
Set OAuth2 credentials as environment variables:
GOOGLE_CLIENT_ID=xxx.apps.googleusercontent.com
GOOGLE_CLIENT_SECRET=GOCSPX-xxx
GITHUB_CLIENT_ID=Ov23lixxx
GITHUB_CLIENT_SECRET=xxx
APPLE_CLIENT_ID=com.example
APPLE_CLIENT_SECRET=xxx # client secret generated from private key
MICROSOFT_CLIENT_ID=xxx
MICROSOFT_CLIENT_SECRET=xxx
All providers are optional — only configure the ones you need.
| Method | Path | Description |
|---|---|---|
GET | /auth/login/{provider} | Redirect to OAuth2 consent screen |
GET | /auth/callback/{provider} | Exchange auth code for session |
GET | /auth/session/{token} | Get owner info from session token |
GET | /auth/me | Get current owner from Agentity-Session header |
POST | /auth/register-verified | Verify owner_did matches session |
from fastapi import FastAPI
from agentity_registry.main import create_app
from agentity_auth import router as auth_router
app = create_app() # creates FastAPI with /register, /did, /revoke, etc.
app.include_router(auth_router) # adds /auth/login, /auth/callback, /auth/me
| Provider | Scopes | User info |
|---|---|---|
openid email profile | Email, name, Google profile | |
| GitHub | read:user user:email | Email, name, GitHub profile |
| Apple | name email | Email, name (Sign in with Apple) |
| Microsoft | openid email profile User.Read | Email, name, MS profile |
class OwnerInfo(BaseModel):
did: str # did:agentity:human:{fingerprint}
provider: str # google | github | apple | microsoft
provider_sub: str # Provider's user ID
email: str
name: str
verified: bool
License: Apache 2.0
Download counts and popularity will appear here as the collector receives them.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 0.1.1 | 17 May 2026 | 8 |
This describes our collected data; it is not a security assessment.
Observed since 20 Oct, 22:28 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:035ec0f67a270ef11b4f67c8c8ad75f34620bedaf096386b0c185e1d109aeba7