Logins and permissions
Who is this person, and what are they allowed to see?
What goes wrong
- Login works, but the only thing stopping people is a hidden button
- Anyone who is logged in can change a number in the web address and see another customer’s data
- People stay logged in forever, and you can’t kick out a stolen account
How I fix it
- The server checks permission on every request, and I test it by trying to break in
- Logins that expire, can be cancelled, and can use Google or company sign-in
- Each customer’s data is kept separate at the source, so one mistake can’t leak it