{"id":27736733,"url":"https://github.com/misaghmomenib/django-auth-system","last_synced_at":"2026-04-13T12:02:03.276Z","repository":{"id":290342828,"uuid":"974059071","full_name":"MisaghMomeniB/Django-Auth-System","owner":"MisaghMomeniB","description":"Django Authentication and Authorization System  A Robust and Secure Authentication and Authorization System Built With Django. It Includes User Registration, Login, Logout, and Dashboard Access Control.","archived":false,"fork":false,"pushed_at":"2025-06-13T20:02:31.000Z","size":68,"stargazers_count":10,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-13T21:19:07.556Z","etag":null,"topics":["auth-system","django","git","open-source","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MisaghMomeniB.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-04-28T07:39:04.000Z","updated_at":"2025-06-13T20:02:35.000Z","dependencies_parsed_at":"2025-04-28T10:36:36.017Z","dependency_job_id":"d603b3d1-7b92-4fb2-81ca-622b0a024f84","html_url":"https://github.com/MisaghMomeniB/Django-Auth-System","commit_stats":null,"previous_names":["misaghmomenib/django-auth-system"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/MisaghMomeniB/Django-Auth-System","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MisaghMomeniB%2FDjango-Auth-System","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MisaghMomeniB%2FDjango-Auth-System/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MisaghMomeniB%2FDjango-Auth-System/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MisaghMomeniB%2FDjango-Auth-System/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MisaghMomeniB","download_url":"https://codeload.github.com/MisaghMomeniB/Django-Auth-System/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MisaghMomeniB%2FDjango-Auth-System/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267184069,"owners_count":24049126,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-26T02:00:08.937Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["auth-system","django","git","open-source","python"],"created_at":"2025-04-28T14:29:54.758Z","updated_at":"2026-04-13T12:02:02.323Z","avatar_url":"https://github.com/MisaghMomeniB.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🔐 Django Auth System\n\nA robust and modular **user authentication system** built with Django. It provides clean registration, login, logout, password management, and email verification flows—ready to integrate into any Django project.\n\n---\n\n## 📋 Table of Contents\n\n1. [Overview](#overview)  \n2. [Features](#features)  \n3. [Tech Stack \u0026 Dependencies](#tech-stack--dependencies)  \n4. [Project Structure](#project-structure)  \n5. [Setup \u0026 Installation](#setup--installation)  \n6. [Usage](#usage)  \n7. [Security Considerations](#security-considerations)  \n8. [Contributing](#contributing)  \n9. [License](#license)\n\n---\n\n## 💡 Overview\n\nThis Django-based project handles common user authentication flows out-of-the-box:\n\n- ✅ User **registration** (with email confirmation option)  \n- 🔐 **Login** and **logout**  \n- 🔄 **Password reset** via email  \n- 🔒 Secure password hashing and session management :contentReference[oaicite:1]{index=1}\n\nIt’s designed as a standalone app that you can incorporate into your own Django projects as a reusable authentication layer.\n\n---\n\n## ✅ Features\n\n- Register new users with **email** and **username**  \n- Login/logout with Django’s authentication backend  \n- Reset forgotten passwords with **tokenized email flow**  \n- Optional **email confirmation** upon registration  \n- Profile update form (email, username, password)  \n- Clean, minimalistic **Bootstrap-based UI**\n\n---\n\n## 🛠️ Tech Stack \u0026 Dependencies\n\n- **Python 3.8+**, **Django 4.x**  \n- Built-in `django.contrib.auth`, `django.contrib.sessions`, `django.contrib.messages`  \n- **Bootstrap 5** for styling and responsive templates  \n- Optional Email backend (SMTP/Gmail) for confirmation flows :contentReference[oaicite:2]{index=2}  \n- SQLite by default (configurable for PostgreSQL/MySQL)\n\n---\n\n## 🗂️ Project Structure\n\n```\n\ndjango\\_auth\\_system/\n├── authentication/      # Main app handling auth logic and views\n│   ├── templates/\n│   │   └── authentication/  # Registration, login, password reset templates\n│   ├── forms.py         # Custom forms for registration, login, password change\n│   ├── urls.py          # URL routes for auth views\n│   └── views.py         # View logic for all auth flows\n├── project/             # Django project settings and main configurations\n│   ├── settings.py\n│   ├── urls.py\n└── manage.py\n\n````\n\n---\n\n## ⚙️ Setup \u0026 Installation\n\n```bash\ngit clone https://github.com/MisaghMomeniB/Django-Auth-System.git\ncd Django-Auth-System\npython3 -m venv venv\nsource venv/bin/activate\npip install -r requirements.txt\n````\n\nConfigure email settings in `project/settings.py`:\n\n```python\nEMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'\nEMAIL_HOST = 'smtp.gmail.com'\nEMAIL_PORT = 587\nEMAIL_USE_TLS = True\nEMAIL_HOST_USER = '\u003cyour-email\u003e@gmail.com'\nEMAIL_HOST_PASSWORD = '\u003capp-password\u003e'\n```\n\nRun migrations and start the server:\n\n```bash\npython manage.py migrate\npython manage.py runserver\n```\n\n---\n\n## 🚀 Usage\n\nAccess these routes:\n\n* `/register/` – Create a new account\n* `/login/` – Sign in to your account\n* `/logout/` – Sign out\n* `/password-reset/` – Request a password reset link\n* `/password-reset-confirm/...` – Set a new password\n* `/profile/` (optional) – Update user details\n\nTemplates are customizable—update them in `authentication/templates/authentication/`.\n\n---\n\n## 🔐 Security Considerations\n\n* Secure password hashing with Django’s default **PBKDF2**\n* Time-limited tokens for password reset and email confirmation\n* CSRF protection and session security from Django middleware\n* Optional **email confirmation** to verify user addresses ([github.com][1])\n\n---\n\n## 🤝 Contributing\n\nImprovements are welcome! You could add:\n\n* Social login (OAuth) integration\n* Two-factor authentication (2FA)\n* Customizable email templates and styling\n* Unit tests for views and form validity\n\n**To contribute**:\n\n1. Fork the repo\n2. Create a branch (`feature/...`)\n3. Implement changes with tests\n4. Open a Pull Request\n\n---\n\n## 📄 License\n\nDistributed under the **MIT License**. See `LICENSE` file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmisaghmomenib%2Fdjango-auth-system","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmisaghmomenib%2Fdjango-auth-system","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmisaghmomenib%2Fdjango-auth-system/lists"}