Expand description
Authentication Module - GitHub OAuth for Collaboration
Supports i1.is and other services via GitHub login.
Flow:
- Client requests /auth/github/login
- Redirect to GitHub OAuth
- GitHub redirects back with code
- Exchange code for access token
- Fetch user info from GitHub API
- Create session token
Structs§
- GitHubO
Auth Config - GitHub OAuth configuration
- GitHub
User - GitHub user info
- Session
Store - Session store
- User
Session - Authenticated user session
Functions§
- create_
session_ store - Create a new shared session store
- exchange_
code_ for_ token - Exchange GitHub OAuth code for access token
- fetch_
github_ user - Fetch GitHub user info using access token
Type Aliases§
- Shared
Session Store - Thread-safe session store