{"id":19676026,"url":"https://github.com/wannacry081/authenticationsystem-django","last_synced_at":"2026-04-28T13:36:31.580Z","repository":{"id":242738745,"uuid":"810366742","full_name":"WannaCry081/AuthenticationSystem-Django","owner":"WannaCry081","description":" This project implements a RESTful API for authentication using Django and Django Rest Framework (DRF). It includes endpoints for user registration, login, and password reset with code verification via SMTP, and uses JWT (JSON Web Tokens) for secure authentication.","archived":false,"fork":false,"pushed_at":"2024-06-28T15:44:29.000Z","size":54,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-02T05:55:03.582Z","etag":null,"topics":["authentication","django","django-rest-framework","rest-api"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/WannaCry081.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2024-06-04T14:55:10.000Z","updated_at":"2024-06-28T15:44:33.000Z","dependencies_parsed_at":"2024-06-28T17:22:41.093Z","dependency_job_id":null,"html_url":"https://github.com/WannaCry081/AuthenticationSystem-Django","commit_stats":null,"previous_names":["wannacry081/authenticationsystem-django"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/WannaCry081/AuthenticationSystem-Django","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WannaCry081%2FAuthenticationSystem-Django","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WannaCry081%2FAuthenticationSystem-Django/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WannaCry081%2FAuthenticationSystem-Django/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WannaCry081%2FAuthenticationSystem-Django/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/WannaCry081","download_url":"https://codeload.github.com/WannaCry081/AuthenticationSystem-Django/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WannaCry081%2FAuthenticationSystem-Django/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261704558,"owners_count":23197188,"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","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":["authentication","django","django-rest-framework","rest-api"],"created_at":"2024-11-11T17:26:52.379Z","updated_at":"2026-04-28T13:36:26.547Z","avatar_url":"https://github.com/WannaCry081.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Authentication System [Django]\n\nThis project implements an authentication system Restful-API using Django and Django Rest Framework (DRF). It provides endpoints for user registration, login, and password reset with code verification using smtp. The authentication mechanism is based on JWT (JSON Web Tokens) for secure authentication.\n\n## Features\n\n- User Registration: Allows users to register with their email and password.\n- User Login: Provides endpoints for user authentication using email and password.\n- Password Reset: Allows users to request a password reset and verifies the reset code before updating the password.\n\n## Authentication Workflow\n\n1. **User Registration**: Users can register by providing their email and password.\n2. **User Login**: Registered users can log in by providing their email and password. Upon successful login, the system issues JWT tokens.\n3. **Password Reset Request**: Users can request a password reset by providing their email. The system sends a reset code to the user's email.\n4. **Password Reset Verification**: Users verify the reset code sent to their email and provide a new password. The system updates the password upon successful verification.\n\n## Endpoints\n\n- `/api/v1/register/`: POST endpoint for user registration.\n- `/api/v1/login/`: POST endpoint for user login to obtain JWT tokens.\n- `/api/v1/reset-password/`: POST endpoint for password reset request.\n- `/api/v1/reset-password/verify/`: POST endpoint for verifying password reset code and updating the password.\n- `/api/v1/users/{id}/`: GET endpoint to retrieve authenticated user information by ID.\n- `/api/v1/users/{id}/`: PUT endpoint to update authenticated user information by ID.\n- `/api/v1/users/{id}/`: DELETE endpoint to delete authenticated user by ID.\n- `/api/v1/users/me/`: GET endpoint to retrieve authenticated user's own information.\n\n## Installation\n\n1. **Clone the repository:**\n\n    ```bash\n    git clone https://github.com/WannaCry081/AuthenticationSystem-Django.git\n    ```\n\n3. **Set up environment variables:**\n\n    Create a `.env` file in the root directory of your project and add the following environment variables:\n\n    ```\n    DJANGO_ENV=\"development\"\n    DJANGO_SECRET_KEY=your_secret_key_here\n    DJANGO_EMAIL_HOST_USER=your_email_host_user_here\n    DJANGO_EMAIL_HOST_PASSWORD=your_email_host_password_here\n    ```\n\n3. **Start the development server:**\n\n    ```bash\n    ./run.sh\n    ```\n\n\u003e [!NOTE]\n\u003e\n\u003e This authentication system is hard-coded and does not rely on the `djoser` package. It provides a basic implementation of authentication using Django and DRF with JWT tokens.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwannacry081%2Fauthenticationsystem-django","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwannacry081%2Fauthenticationsystem-django","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwannacry081%2Fauthenticationsystem-django/lists"}