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

Unlock This Lesson

This lesson is for members only. Join us and get access to hundreds 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 the default subtitles language 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 see our video player troubleshooting guide to resolve the issue.

Using Google Login With Flask (Summary)

Give Feedback

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.