15 Commits (3c7947ada19c180990f4ffe5501b19b952dbce39)

Author SHA1 Message Date
  Jack Foltz 3c7947ada1
Rename and rework auth middleware 5 years ago
  Jack Foltz d04f681986
Clean up auth code and util 5 years ago
  Jack Foltz d5f6a3b57c
Update to latest express and remove wrap from auth 5 years ago
  Jack Foltz 3c0e5241b0
Separate verification logic and add QueryVerifier 5 years ago
  Jack Foltz 62854d8ff5
Work on stat service 5 years ago
  Jack Foltz 685783f6a4
Remove hard coded value 5 years ago
  Jack Foltz 5f2320a492
Fix rate limiting middleware 5 years ago
  Jack Foltz 69cba82d75
Add rate limiting instead of fail2ban 5 years ago
  Jack Foltz f1437f16a9
Use ip instead of remoteAddress for logging 5 years ago
  Jack Foltz e4684384ea
Add newline to auth logging 5 years ago
  Jack Foltz 19d8d026fe
Add auth failure logging 5 years ago
  Jack Foltz b8d40032ca
Add banned field and tests to User 5 years ago
  Jack Foltz 827072212d
Separate middleware from verifyBody logic into bodyVerifier 5 years ago
  Jack Foltz 21fe0de46d
Extend body verifier to sanitize, regex trim, and length check 5 years ago
  Jack Foltz 49b77c5c03
Clean up routes folder 5 years ago
  Jack Foltz f7d51650c1
Separate out logic in requireAuth and make one unified auth.js include 5 years ago
  Jack Foltz 179bed8924
Fix login body verification 5 years ago
  Jack Foltz 456cac6b17
Verify the request before attempting to canonicalize it 5 years ago
  Jack Foltz cc84fdb20c
Rewrite auth router to use middleware for verification 5 years ago
  Jack Foltz 9227fa428d
Add checks for bad requests in auth.js to prevent 500 5 years ago
  Jack Foltz c9e250a68e
Change exp field to expires 5 years ago
  Jack Foltz 094a45b6be
Change requireAuth to only export itself 5 years ago
  Jack Foltz a8acf85052
Change wrap to only export itself 5 years ago
  Jack Foltz 7441eaaf02
Make use of username/displayname field consistent throughout api 5 years ago
  Jack Foltz 8bfec46001
Replace constants with configurable values 5 years ago
  Jack Foltz d0b26a7021
Make requireAuth() add request variables 5 years ago
  Jack Foltz 0db0caf422
Add ping api route and test for valid session 5 years ago
  Jack Foltz 2e7ca23d9f
Rewrite User tests to be async 5 years ago
  Jack Foltz ce99433afc
Properly async-ify registration code 5 years ago
  Jack Foltz c0f924bb59
Fix username in use check and whitespace sanitization 5 years ago
  Jack Foltz 098865cbbf
Fix file permissions 6 years ago
  Jack Foltz 26cc9bf6ef
Refactor all base auth routes, allowing for case insensitivity and unicode usernames. 6 years ago
  Jack Foltz f64fb3526b
Remove unneeded fs and path modules 6 years ago
  Jack Foltz 86b7de2039
Update file permissions 6 years ago
  Jack 5917e75dda
Small auth fixes 6 years ago
  Jack f1e9e7e78b Work on stuff 6 years ago
  Jack 3bba0a7f53
Add fallback cookie auth method 6 years ago
  Jack f14fac18ec
Strip tags from usernames and update tests 6 years ago
  Jack aa615cd570
Fix bug where user scope wouldn't be set in the JWT 6 years ago
  Jack e01051f97f
Fix auth code 6 years ago
  Jack fac4dfe5f6
Clean up and parallelize auth code 6 years ago
  Jack 53bf056bc5
Add auth to login and start panel 6 years ago
  Jack e6a09bbe40
Add invite codes for registering 6 years ago
  Jack 8251900309
Work on stuff... 6 years ago