Using Facebook for authentication
You will have noticed that many websites provide an option to log in to their own site using third-party authentication, such as Facebook, Google, Twitter, LinkedIn, and so on. This has been made possible by OAuth 2, which is an open standard for authorization. It allows the client site to use an access token to access the protected information and resources provided by the resource server. In this recipe, we will show you how to implement OAuth-based authorization via Facebook. In later recipes, we will do the same using other providers.
Information
OAuth is a mechanism that allows users to grant websites or applications access to their information on other websites (such as Google, Facebook, Twitter, etc.) without sharing the password. It essentially means that the third-party client application (your Flask application) gets access to data stored on the resource server (Google, Facebook, etc.) by means of an access token, which is issued by...