Sign in

lishuyu.app · GitHub OAuth

Continue with GitHub

Returning to /

LLM / agent navigation — how to call auth (platform identity)

Platform identity — GitHub/email login, user JWT, PAT, and JWKS. Every service forward-auths its bearers here.

Base URL: https://auth.lishuyu.app — paths below are relative to it.

methodpathauthpurpose
GET/login/{provider}publicstart OAuth — provider = github
POST/login/emailpublicsend a magic-link email
GET/api/users/meuser JWT/PATresolve the current bearer to a user
POST/api/patuser JWTmint a PAT for automation
GET/api/patuser JWTlist your PATs
POST/api/pat/{id}/revokeuser JWTrevoke a PAT
POST/token/refreshrefresh tokenexchange a refresh token for new access + refresh
GET/.well-known/jwks.jsonpublicRS256 public keys (JWKS)

Agents authenticate with a PAT: Authorization: Bearer pat_<...>. Sign in here first, then mint one at POST /api/pat (or via the admin console). A browser session rides the phm_jwt cookie. Admin-only user management lives under /api/users.

Other platform services: GET https://registry.lishuyu.app/llm.txt (public how-to), or authenticate and query GET https://registry.lishuyu.app/api/services/discover/{capability} to find a capability, then call that service directly.