Flask in Python: User Authentication in a Flask Application

Flask    |    Intermediate
  • 14 videos | 1h 33m 15s
  • Includes Assessment
  • Earns a Badge
Rating 4.5 of 15 users Rating 4.5 of 15 users (15)
In this 14-video course, titled "User Authentication in Flask Applications," you will begin with an introduction to SQL Alchemy, then install it and use it to connect the Flask application-a widely used web framework written in Python language-to a SQLite database. You will observe how to use SQL Alchemy to generate relational database tables for each model defined in an application; execute queries against tables by using a SQL Alchemy model; and how to structure a Flask application for maintenance. Then you will modify import statements to account for restructuring of Flask app and test that functionality has not been affected. Use Bcrypt package to generate hashes of passwords so that they can be stored securely, and create a bespoke validator for fields in your WTForms. Next, learn how to enable users to log in and log out of a Flask application. You will access and display the three most recent reviews posted on your Flask website; learn how to test feedback display functionality; and display images in your Flask website.

WHAT YOU WILL LEARN

  • Discover the key concepts covered in this course
    Install sql alchemy and use it to connect the flask application to a sqlite database
    Use sql alchemy to generate relational database tables for each model defined in your application
    Execute queries against tables using a sqlalchemy model
    Separate the model definitions, routes, and app initialization into separate files that are easier to maintain
    Modify the import statements to account for the restructuring of the flask app and test that the functionality has not been affected
    Use the bcrypt package to generate hashes of passwords so that they can be stored securely
  • Create a bespoke validator for fields in your wtforms
    Install and use a flask extension to allow users to login to your flask app and maintain a login session
    Implement the logout feature so that users can sign out of a flask app
    Access and display the three most recent reviews posted on your flask web site
    Test that the feedback display functionality implemented works as expected
    Configure your flask web site to display images loaded from the app's static resources
    Summarize the key concepts covered in this course

IN THIS COURSE

  • 2m 14s
  • 8m 57s
    Find out how to install SQL Alchemy and use it to connect the Flask application to a SQLite database. FREE ACCESS
  • Locked
    3.  Creating Tables from Model Definitions
    4m 12s
    Find out how to use SQL Alchemy to generate relational database tables for each model defined in your application. FREE ACCESS
  • Locked
    4.  Executing Queries Using SQLAlchemy Models
    7m 59s
    In this video, you will learn how to execute queries against tables using SQLAlchemy. FREE ACCESS
  • Locked
    5.  Structuring a Flask Application for Maintenance
    9m 2s
    In this video, you will learn how to separate the model definitions, routes, and app initialization into separate files. This will make it easier to maintain your project. FREE ACCESS
  • Locked
    6.  Restructuring a Flask Application
    5m 16s
    In this video, you will modify the import statements to account for the restructuring of the Flask app and test that the functionality has not been affected. FREE ACCESS
  • Locked
    7.  Creating Password Hashes Using Bcrypt
    8m 29s
    During this video, you will learn how to use the Bcrypt package to generate hashes of passwords so that they can be stored securely. FREE ACCESS
  • Locked
    8.  Defining Custom Validators for Form Fields
    9m 25s
    Learn how to create a custom validator for fields in your WTForms. FREE ACCESS
  • Locked
    9.  Enabling Users to Login to a Flask Application
    7m 33s
    In this video, you will install and use a Flask extension to allow users to login to your Flask app and maintain a login session. FREE ACCESS
  • Locked
    10.  Allowing Users to Log Out of a Flask Application
    5m 23s
    During this video, you will learn how to implement the logout feature so that users can sign out of a Flask app. FREE ACCESS
  • Locked
    11.  Displaying the Latest Reviews Submitted
    7m 42s
    In this video, learn how to access and display the three most recent reviews posted on your website. FREE ACCESS
  • Locked
    12.  Testing Feedback Display Functionality
    6m 16s
    Learn how to test that the feedback display functionality works as expected. FREE ACCESS
  • Locked
    13.  Using Images in your Flask Web Site
    9m 36s
    Learn how to configure your Flask web site to display images loaded from the app's static folder. FREE ACCESS
  • Locked
    14.  Course Summary
    1m 12s

EARN A DIGITAL BADGE WHEN YOU COMPLETE THIS COURSE

Skillsoft is providing you the opportunity to earn a digital badge upon successful completion on some of our courses, which can be shared on any social network or business platform.

Digital badges are yours to keep, forever.

PEOPLE WHO VIEWED THIS ALSO VIEWED THESE

Rating 4.3 of 627 users Rating 4.3 of 627 users (627)
Rating 4.6 of 52 users Rating 4.6 of 52 users (52)
Rating 4.6 of 25 users Rating 4.6 of 25 users (25)