Flask Framework Cookbook by Shalabh Aggarwal

Flask Framework Cookbook by Shalabh Aggarwal

Author:Shalabh Aggarwal
Language: eng
Format: epub
Tags: COM060160 - COMPUTERS / Web / Web Programming, COM051360 - COMPUTERS / Programming Languages / Python, COM060180 - COMPUTERS / Web / Web Services and APIs
Publisher: Packt Publishing
Published: 2019-07-12T13:29:51+00:00


<a href="{{ url_for('auth.google_login', next=url_for('auth.home')) }}">Login via Google</a>

How it works...

The Google login works in a manner similar to the Facebook login from the previous recipe.

Using Twitter for authentication

OAuth was actually born while writing the OpenID API for Twitter. In this recipe, we will integrate Twitter login with our application.

Getting ready

We will continue by building over the Using Google for authentication recipe. It is easy to implement Twitter authentication – simply leave out the Facebook or Google-specific parts from the previous authentication recipes.

First, we have to create an application from the Twitter Application Management page (https://developer.twitter.com/en/apps). It will automatically create Consumer API keys (API key and API secret key) for us to use, as shown in the following screenshot:



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.