Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
0137b61
feat(auth): add dependencies and configuration for authentication
hrideshmg Nov 17, 2025
5d213a6
feat(models): add auth models and update member table
hrideshmg Nov 17, 2025
2fc8dee
feat(auth): implement session management system and authentication co…
hrideshmg Nov 17, 2025
6251ccd
feat(auth): implement API key authentication
hrideshmg Nov 17, 2025
afe56bd
feat(auth): implement GitHub OAuth integration
hrideshmg Nov 17, 2025
e345b23
feat(auth): add authentication middleware and guards
hrideshmg Nov 17, 2025
ee516c2
feat(auth): add authentication mutations
hrideshmg Nov 17, 2025
673c9b8
feat(auth): add authentication guards to existing queries and mutations
hrideshmg Nov 17, 2025
871536b
feat(router): integrate authentication middleware and oauth routes
hrideshmg Nov 17, 2025
51e52cc
feat: add expired session cleanup to daily tasks
hrideshmg Nov 17, 2025
396d20f
docs: add documentation for the authentication system
hrideshmg Nov 17, 2025
0f7524e
refactor: use UTC timezone consistently
hrideshmg Nov 17, 2025
1926e2f
fix: remove accidental change to gitignore
hrideshmg Nov 17, 2025
e7c194d
fix: clippy and rustfmt errors
hrideshmg Nov 17, 2025
91252ba
chore: cleanup comments
hrideshmg Nov 17, 2025
d8a260b
feat: migrate GitHub OAuth to backend-driven flow with session cookies
hrideshmg Nov 20, 2025
791fe98
docs: Update auth.md for cookie-based OAuth and session management
hrideshmg Nov 21, 2025
869227c
fix: Configure CORS and cookie settings for production deployment
hrideshmg Nov 21, 2025
a40eb25
refactor: centralize config and set secure cookie based on environment
hrideshmg Nov 21, 2025
4e47493
feat: Add /me endpoint and only allow user to update their own details
hrideshmg Nov 21, 2025
4a9fdcd
fix: remove logout as session tokens are HttpOnly
hrideshmg Nov 21, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions .env.sample
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,18 @@ POSTGRES_HOST=localhost

# Root env
ROOT_DB_URL=postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${POSTGRES_HOST}:5432/${POSTGRES_DB}
RUST_ENV=development
ROOT_ENV=development
ROOT_SECRET=insecuresecret123 # Used to verify origin of attendance mutations
ROOT_PORT=3000

# GitHub OAuth for authentication
GITHUB_CLIENT_ID=your_github_oauth_app_client_id
GITHUB_CLIENT_SECRET=your_github_oauth_app_client_secret
GITHUB_REDIRECT_URL=http://localhost:5000/auth/github/callback # Oauth Callback
GITHUB_ORG_NAME=amfoss

FRONTEND_URL=http://localhost:3000/dashboard # Redirect here after OAuth
HOSTNAME=localhost

# Seed toggle
SEEDING_ENABLED=false
SEEDING_ENABLED=false
Loading
Loading