Expand description
OAuth and session HTTP routes.
These routes are mounted automatically by AtrgApp::run():
GET /auth/login?handle=<handle>— initiate OAuthGET /auth/callback— OAuth callbackPOST /auth/logout— clear sessionGET /auth/session— current session info (JSON)GET /client-metadata.json— OAuth client metadataGET /.well-known/oauth-protected-resource— OAuth protected resource metadata
Structs§
- Login
Query - Login query parameters.
Functions§
- auth_
router - Returns a single router containing all atrg built-in auth routes:
/auth/*,/client-metadata.json, and/.well-known/oauth-protected-resource. - client_
metadata - OAuth client metadata endpoint.
- routes
- Build the auth router with all authentication routes.
- spawn_
cleanup_ task - Spawn a periodic cleanup task for expired OAuth states and sessions.
- well_
known - OAuth protected resource metadata endpoint.