Web Development with Django 6 - Third Edition
by Chris Guest, Mark Walker, Ben Shaw, Saurabh Badhwar, Bharath Chandra K S
9
Sessions and Authentication
So far, we have used Django to develop dynamic applications that allow users to interact with application models, but we have not attempted to secure these applications from unwanted use. For example, our bookr project allows unauthenticated users to add reviews and upload media. This is a critical security issue for any online web app, as it leaves the site open to the posting of spam or other inappropriate material and the vandalism of existing content. We want the creation and modification of content to be strictly limited to authenticated users who have registered with the site.
The authentication app supplies Django with the models for representing users, groups, and permissions. It also provides middleware, ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access