Skip to content

Latest commit

 

History

History

Firebase_Authentication_Using_Flask

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Star Badge Open Source Love

Firebase Authentication for Flask Application

🛠️ Description

This project enables developers to implement secure user authentication features in their Flask applications with ease using Firebase Authentication which offers various authentication methods, including email/password, social media login (such as Google, Facebook, Twitter), and more. It handles the entire authentication process, including user registration, login, and password reset, taking care of security best practices like password hashing and token-based authentication.

⚙️ Languages or Frameworks Used

  • Flask, Firebase
  • HTML, CSS, Bootstrap

🌟 How to run

  • Install all the requirements

    Run pip install -r requirements.txt to install all the requirements.

  • Firebase Setup for Project

    • Create a firebase project, set up a web project and get all the Project Configurations from Project Settings.

    • Navigate to the Authentication section in your firebase project and enable the Email and Password authentication.

    • The Project Configurations will look as follows :-

  "apiKey": YOUR_API_KEY ,
  "authDomain": YOUR_AUTH_DOMAIN,
  "databaseURL": YOUR_DATABASEURL,
  "projectId": YOUR_PROJECT_ID,
  "storageBucket": YOUR_STORAGE_BUCKET,
  "messagingSenderId": YOUR_MESSAGING_SENDER_ID,
  "appId": YOUR_APP_ID,
  "measurementId": YOUR_MEASUREMENT_ID 
  • Setup Environment for the project

    • Now create a .env file in your project dreictory and include the following parameters as it is :-
export FIREBASE_APIKEY=YOUR_API_KEY
export FIREBASE_AUTHDOMAIN=YOUR_AUTH_DOMAIN
export FIREBASE_DATABASEURL=YOUR_DATABASEURL
export FIREBASE_PROJECT_ID=YOUR_PROJECT_ID
export FIREBASE_STORAGE_BUCKET=YOUR_STORAGE_BUCKET
export FIREBASE_MESSAGING_SENDER_ID=YOUR_MESSAGING_SENDER_ID
export FIREBASE_APP_ID=YOUR_APP_ID
export FIREBASE_MEASUREMENT_ID=YOUR_MEASUREMENT_ID
  • Now Just, Run the project

    • To the run the project, go to the bash terminal of VSCode or any other code editor and run ./start_server.sh.
    • You don't have to care about setting .env then yourself then.

📺 Demo

image image

🤖 Author

Github - MBSA-INFINITY LinkedIn - MBSAIADITYA Portfolio - MBSA