✅ FastAPI Tutorial • Implement GOOGLE SIGNIN LIKE A PRO

Amo Procedures
Amo Procedures
16 هزار بار بازدید - 9 ماه پیش - In this quick Python FastAPI
In this quick Python FastAPI tutorial for beginners i will show you how to implement  (fastapi oauth2) python fastapi google signin (oauth) authentication.

Google as an external authentication provider we shall use it oauth to implement the signing in to our our pyhton fastapi application.

In this video we want to activate Google Social Login for your Python FastAPI Backend Application.

First of all, we shall need to install some python packages:
- fastapi
- uvicorn
- fastapi-authlib
- python-dotenv

Fastapi auth(oauth for python) library provides easy integration between Python FastAPI and openid connection in your application. Provides the initialization and dependencies like oath and oauth error for authentication management and reduce the difficulty of use, its services include google, twitter, github etc.

I will guide you in this fastapi crash course process step-by-step, from setting up your Google Developer Console to integrating OAuth into your Python FastAPI application.

By the end of this video, you’ll be able to allow users to log in to your application using their Google accounts.

Here is how you would create a Python FastAPI application:

~ from fastapi import FastAPI
~ app = FastAPI()

For fastapi google oauth integration.
First, you need to create an OAuth instance:
~ authlib.integrations.starlette_client import Oauth, OauthError
~ oauth = OAuth()
~ oauth.register(name='google', ...)

The common use case for OAuth is authentication, e.g. let your users log in with Twitter, GitHub, Google etc.

If you are starting to learn FastAPI and Python Programming as a whole please visit my Python programming Tutorials here for more understanding.

-timestamp-
00:00 - Intro
01:19 - Setting up Python  Environment
03:18 - Initializing FastAPI
05:35 - Integrating Jinja2 Templates
07:52 - Setting up the configurations
08:35 - Adding Session Middleware
11:07 - Setting up Google OAuth
15:31 - Integrating Static Files
16:18 - Adding Login Endpoint
22:13 - Configuring Login Page
27:42 - Setting up Google Oauth Cloud Credentials
35:24 - FastAPI Login with Google OAuth

For more Python Programming videos:

⬇️ FastAPI, React and MySQL - (FARM Stack) Todo App Part 1
Create a Todo App with FastAPI, React...

⬇️ FastAPI JWT Auth | Full Access + Refresh Token
✅ FastAPI JWT Token Auth • Full Acces...

⬇️How to Create and Test a Cron Job with FastAPI and Python
✅Master How to Easily Create a Cron J...

⬇️ Best Fast API Tutorial | How to use Python Fastapi BACKGROUND TASKS
✅ FastAPI Tutorial • How to use BACKG...

⬇️ Integrating HTML with Python FastAPI
✅ FastAPI Tutorial • Master HTML Inte...

⬇️ Best Python Fast API Tutorials
✅ Best Python Fast API Programming

⬇️ Source Code for Fastapi with Google Oauth
https://github.com/amoprocedures/fast...

#python #ai #opensource #google #mrbeast
9 ماه پیش در تاریخ 1402/08/04 منتشر شده است.
16,035 بـار بازدید شده
... بیشتر