Join us and get access to thousands of tutorials and a community of expert Pythonistas.

Unlock This Lesson

This lesson is for members only. Join us and get access to thousands of tutorials and a community of expert Pythonistas.

Unlock This Lesson

Hint: You can adjust the default video playback speed in your account settings.
Hint: You can set your subtitle preferences in your account settings.
Sorry! Looks like there’s an issue with video playback 🙁 This might be due to a temporary outage or because of a configuration issue with your browser. Please refer to our video player troubleshooting guide for assistance.

Using Google Login With Flask (Summary)

In this course, you’ve gone through the basics of OAuth 2 and OpenID Connect. You’ve seen how to use well-known Python packages to create a web application that allows users to log in with their existing Google account. Most importantly, you have example code that serves as a great starting point for your next web application!

The application you made in this article is a great starting point. Your next step could be to do the following:

  • Rework the database initialization to happen separately from running the application
  • Separate out the HTML/CSS from the Python code for easier management:
  • Host your application in the cloud
  • Purchase a domain name
  • Use a real SSL certificate and get rid of that pesky warning
Download

Sample Code (.zip)

6.0 KB

Become a Member to join the conversation.