Book Image

Flask Blueprints

By : Joel Perras
Book Image

Flask Blueprints

By: Joel Perras

Overview of this book

Table of Contents (14 chapters)

Summary


After this rather lengthy and content-filled chapter, you should feel more at ease with OAuth and OAuth-related implementations and general terminology, and additionally, the usefulness of database migrations, especially the style of migrations produced by Alembic that are synchronized to the table and the constraint metadata declared in the application models.

The chapter started out with an in-depth exploration of the OAuth authorization grant flow and terminology—no small feat considering the complex nature of OAuth! Once we established a bit of a knowledge baseline, we implemented an application that leveraged Flask-OAuthlib to provide users with the ability to create accounts and sign in with third-party services such as Twitter and Facebook.

After fleshing out the data handling portions of the example application, we then turned our attention to Alembic, the SQLAlchemy data migration toolkit, to synchronize the changes in our models with our relational database.

The project that...