Summary
In this chapter, we have learned how Django provides authentication out of the box. Django also provides authorization support with the help of Django permissions and groups. RBAC is one of the key security features that is needed by modern applications, which is provided out of the box by Django.
We have also learned how to use token-based authentication using DRF and Django. Token-based authentication is useful for non-browser clients, such as Android, iOS, and IoT devices. Social login is a must-have feature in today’s modern applications, and we have discussed how python-social-auth
in Django can be used to integrate social login.
In the next chapter, we will learn more about how we can implement caching, logging, and throttling in Django applications and the added advantages they offer.