Web development with Python and Flask part 8

 Web development with Python and Flask part 8

Web development with Python and Flask part 8. Authentication involves the verification of predefined credentials. Authorization is granting access to resources to authenticated users.

Authentication is one of the most essential parts of today‚Äôs dynamic web applications. It is also part of what makes a dynamic web be described as such as it allows customized content depending on who accesses the application. An  Authentication system is used for validating that users are who they claim to be. This is the first step in any security process .

Often authentication involves verification of predefined credentials a user provides as an agreement for the web services provided on the platform. On the other hand Authorization in system security is the process of giving the user permission to access a specific resource or function. This term is often used interchangeably with access control or client privilege.

In this two-parts articles, we will take a look at how to capture user information using forms, store the credentials in a Mysql database, authenticate the user, use flask sessions and cookies to authorize access persistently to other parts of a web application and finally log users out of the application. This is part 1 of the two and much of the work will be focused on defining what sessions and cookies are. Then take a turn to create a MySQL database, create a flask application that will connect to this database, finally create the flask script that connects and registers users in this database.

Table of Content

  • What are web sessions and how they work
  • What are** Cookies and how they work**
  • Sessions and Cookies in flask web development
  • Creating a flask application, connecting to the** Mysql database,** and creating the Registration functions
  • Creating templates for *Registration, *and running some tests
  • Conclusion

flask mysql python tailwind css web developemnt authentication authorisation tailwind css user registsration web cookies web sessions

What is Geek Coin

What is GeekCash, Geek Token

Best Visual Studio Code Themes of 2021

Bootstrap 5 Tutorial - Bootstrap 5 Crash Course for Beginners

Nest.JS Tutorial for Beginners

Hello Vue 3: A First Look at Vue 3 and the Composition API

Creating flask session and cookie authentication system part 2: Python and Flask part 8

Authentication involves the verification of predefined credentials. Authorization is granting access to resources to authenticated users.

top 30 Python Tips and Tricks for Beginners

In this post, we'll learn top 30 Python Tips and Tricks for Beginners

Creating REST API with Python and Flask: Web development with Python and flask part 6

In this tutorial, we'll learn Creating REST API with Python and Flask: Web development with Python and flask part 6. Let's explore it with us now.

Python Flask Full Series - Web Application Development - User Authentication Part 2

Python Flask Full Series - Web Application Development - User Authentication - In this episode, we will continue implementing the Login System, thanks to some built-in libraries in Flask, it will be a lot easier than what you think. There will be some on-demand exception handling as well on this video, and I like to not cut those, just for you to see how I think to overcome some problems along the way.

Python Flask Full Series - Web Application Development - User Authentication Part 1

Python Flask Full Series - Web Application Development - User Authentication - We will start implementing the login system to our website. First of first, we will see how we can store the passwords as hashed passwords to improve our website's security. Later on, we will move to creating forms, routes, and templates to display our users a friendly Login form.