The aim of this video is to present how Token Authentication can be implemented using Flask..
- [Narrator] Hi and welcome to the second video…of section five, Token Authentication.…In the previous video, we checked how can we use HTTPS…for securing our web application and Web API.…In this video we are going to learn how to use tokens…for validating client requests.…We are going to talk about tokens, what are these,…and how should we use it.…Then we are going to cover flask-security,…and finally we will review how can we implement…the token based authentication without using any…additional extension.…Tokens are keys which are generated by the server,…and these should be unique for each user.…
If possible, tokens should have a time frame…when these are considered valid.…Tokens should be constructed using a method…which cannot be done by third parties.…In case third parties can reproduce the token generation…algorithm, then our Web API is compromised…because any request can be set up using a valid token.…Token based authentication is stateless,…and has to scale our application.…Since our Web API will be used for many platforms,…
Regardless of platform, you will need to build APIs to serve data between different client applications and endpoints. Good APIs are a necessity for web and mobile projects, especially with the modern, mobile-first approach to development. This course delivers the fundamental knowledge required to enable highly connected interactions between applications via RESTful web APIs. Follow along with Gergo Bogdan and learn how to build up and structure an effective web API that can be used by any client application accessing it over HTTP, using Flask, the Python microframework.
Find out how to implement CRUD operations using SQLAlchemy and MySQL as the data store. Get an understanding of how REST works relative to APIs, and learn how to test APIs written in Python with the support of Flask. Explore token-based authentication and find out how to store passwords securely in your database. Along the way, Gergo introduces best practices and design guidelines when building large applications.
- Setting up Flask
- Using Flask templates and routing
- Implementing CRUD operations
- Implementing pagination
- Configuring RESTful authentication
- HTTP caching
- Securing web APIs
- Testing the application