-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
- Research HTTP Basic Auth vs other alternatives:
The rest API should probably be stateless (Maybe Basic Auth then?)
While the admin website might be better served with a session cookie. - Probably implement testing of auth http headers in a
javax.servlet.Filter
Update:
Implemented Basic and Cookie based authentication
Things left TODO:
Important
- Different permissions for some URLs based on role
- Maybe a special URL for fetching your own account information?
Something like/api/staff/me - Disable certain features on the website based on role
Security
- Password + salt hashing (store salt per user in db)
- Randomly generated login cookie (has to be stored in the db)
NOTE: Please save this until the very last, as it makes it impossible to reuse your login cookie between relaunches of the server (especially annoying for local development, having to login all the time)