Authentication is whatever process, task, and/or policy is used to define who can access your domain. It's like a badge that you use to access your office.
In applications, the most common use of authentication is to allow users who are already registered with your domain to access it.
This recipe will show you how to use some simple code and configuration to control who can and cannot access some of the resources of your application.