8 Do I know you? Authentication

This chapter covers

  • Flask sessions
  • Remembering the user
  • Letting users log in
  • Registering new users

The MyBlog web application supports many users so they can post engaging content that the community will read. In addition, that community can read and comment on the content posted by other users. However, it’s unlikely users want the content that they created edited or deleted by a user other than themselves.

To control who can access and use the MyBlog site, we’ll need to identify users. Identifying users on a web application is called authenticating a user. This allows the application to ensure a user is who they claim to be.

Providing authentication to the MyBlog application is the intent of this chapter. However, ...

Get The Well-Grounded Python Developer now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.