Authentication and Authorization Are Not the Same Problem
First prove identity, then evaluate permissions.
Authentication answers 'who are you?' Authorization answers 'what may you access or modify?'
A valid login or token should never automatically imply access to every route or resource.
- Authentication establishes identity
- Authorization evaluates permissions per route or resource
- A valid token is not the same as valid access