Skip to content

raiego/projeto-OAuth2.0-django-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ” Django OAuth2 Authentication (GitHub Login)

A Django web application that implements OAuth2.0 authentication with GitHub, created to demonstrate how to integrate secure social login using environment variables and modern authentication practices.

This project is useful for developers who want to learn how to implement OAuth-based authentication in Django applications.

πŸš€ Features

πŸ”‘ Authentication using GitHub OAuth2

πŸ‘€ Automatic user login and account creation via GitHub

πŸ”’ Secure credential storage using environment variables (.env)

🧩 Modular Django structure with separated apps

πŸ› οΈ Ready-to-run development setup

πŸ› οΈ Technologies Used

Python

Django

OAuth2.0 (GitHub Authentication)

django-allauth (or similar library)

Environment Variables (.env)

HTML / Django Templates

πŸ“¦ Project Structure

The project follows a modular Django structure with separated apps and configuration:

project/ β”œβ”€β”€ setup/ β”œβ”€β”€ tech/ β”œβ”€β”€ templates/ β”œβ”€β”€ manage.py └── requirements.txt βš™οΈ Running the Project Locally 1️⃣ Clone the repository git clone https://github.com/raiego/projeto-OAuth2.0-django-python.git cd projeto-OAuth2.0-django-python 2️⃣ Create and activate a virtual environment

Windows

python -m venv .venv .venv\Scripts\activate

Linux / macOS

python -m venv .venv source .venv/bin/activate 3️⃣ Install dependencies pip install -r requirements.txt 4️⃣ Create a .env file

Add your credentials (do not commit this file):

SECRET_KEY=your_secret_key GITHUB_CLIENT_ID=your_client_id GITHUB_SECRET=your_client_secret 5️⃣ Run the development server python manage.py runserver

The application will be available at:

http://localhost:8000 πŸ“š What This Project Demonstrates

This project demonstrates:

OAuth2 authentication flow

Social login integration

Secure environment variable management

Django project organization

πŸ’‘ Educational project created for learning authentication and backend development with Django.

About

OAuth2.0 authentication with GitHub integrated into a Django project, using environment variables to securely manage credentials. This project is ideal for learning social login implementation and security best practices in web applications.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors