Chapter 7. Authenticating and Authorizing Users
When working with modern web applications, we often need to authenticate our users to ensure that they are who they claim to be and that they have the appropriate permissions (authorization) required to access information. In this chapter, we'll cover the basics of authenticating users with Yii2 and granting them access to specific pages within our applications using basic access control filters and more complex role-based access control filters.
Tip
In this chapter, we'll be building upon the migration scripts and models we created in Chapter 4, Active Record, Models, and Forms. Before starting this chapter, make sure you have a good understanding of the models and migrations we created in that chapter.