- Authentication = You are who you say you are (User Name and Password).
- Authorization = Level of access. Are you allowed to do what you want to do or are trying to do?
Full control of what your users are doing on your site.
- Authentication = To verify that this is a user who has been allowed to access and use the site.
- Authorization = To make sure that unauthorized user don't have access to making changes, or disrupting parts of the application that they shouldn't be touching.
- Requires that a user is logged in and/or has a certain level of access for an action to be run
- We use the only flag what can and can't be done.
- If you namespace a resource (such as admin) and you're logged in as admin you might have access to that. But if you're not admin you wouldn't have access to these actions.
A mock or a stand-in is a dummy for a method you can use to get your test going.
- ??????????????????????????????????
- Forcing current user that lives in on Application controller to return a user that we create (instead of nil) and let current user return as admin.