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