Catalog PyPI
PACKAGE EXPLORERView in registry

agentity-auth

PyPI

Agentity OIDC authentication — verify human owners via Google, GitHub, Apple, Microsoft

Versions collected1
Direct dependencies8From release 0.1.1
Last observed20 Oct, 22:28 UTC

README

Version 0.1.1 documentation

agentity-auth

OIDC authentication plugin for Agentity. Verify human ownership of agent identities via Google, GitHub, Apple, and Microsoft login.

Installation

pip install agentity-auth

Usage

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)

Configuration

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.

Endpoints

MethodPathDescription
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/meGet current owner from Agentity-Session header
POST/auth/register-verifiedVerify owner_did matches session

Integration with registry

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

Supported providers

ProviderScopesUser info
Googleopenid email profileEmail, name, Google profile
GitHubread:user user:emailEmail, name, GitHub profile
Applename emailEmail, name (Sign in with Apple)
Microsoftopenid email profile User.ReadEmail, name, MS profile

Session model

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

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 1

Collected releases
VersionPublishedDirect dependenciesOpen version
0.1.117 May 20268

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Repository

PENDING
agenttity/agentity

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 22:28 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:035ec0f67a270ef11b4f67c8c8ad75f34620bedaf096386b0c185e1d109aeba7