{"id":20435049,"url":"https://github.com/arvrao/django-rest-framework-authentication","last_synced_at":"2025-07-02T17:03:39.719Z","repository":{"id":82135732,"uuid":"388889252","full_name":"ArvRao/Django-Rest-Framework-Authentication","owner":"ArvRao","description":"This project explains working of Django's Rest framework authentication system. We do API authentication using JWT tokens. We create a custom user class that modifies existing Django's base User class to login using email.","archived":false,"fork":false,"pushed_at":"2021-07-23T18:49:01.000Z","size":12625,"stargazers_count":10,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-12T21:12:39.726Z","etag":null,"topics":["django","djangorestframework","jwt-authentication","python","token-based-authentication"],"latest_commit_sha":null,"homepage":"https://github.com/arvind73/Django-Rest-Framework-Authentication","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/ArvRao.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":"2021-07-23T18:15:00.000Z","updated_at":"2025-01-05T07:49:57.000Z","dependencies_parsed_at":null,"dependency_job_id":"e08e5845-ad9d-4b0b-ace2-76cdd7458c8c","html_url":"https://github.com/ArvRao/Django-Rest-Framework-Authentication","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ArvRao%2FDjango-Rest-Framework-Authentication","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ArvRao%2FDjango-Rest-Framework-Authentication/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ArvRao%2FDjango-Rest-Framework-Authentication/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ArvRao%2FDjango-Rest-Framework-Authentication/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ArvRao","download_url":"https://codeload.github.com/ArvRao/Django-Rest-Framework-Authentication/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248631681,"owners_count":21136562,"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":["django","djangorestframework","jwt-authentication","python","token-based-authentication"],"created_at":"2024-11-15T08:30:40.077Z","updated_at":"2025-04-12T21:12:47.717Z","avatar_url":"https://github.com/ArvRao.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Django-Rest-Framework-Authentication\nThis project explains working of Django's Rest framework authentication system. We do API authentication using JWT tokens. We create a custom user class that modifies existing Django's base User class to login using email.\n\n\n\nStep 1: \nRun the virtual Environment:\n\nsource env/bin/activate\n\nStep 2: Install all dependencies:\ncd authtutorial\n\npip install -r requirements.txt\n\nStep 3: Run the migrations and create database\n\npython3 manage.py makemigrations\n\npython3 manage.py migrate\n\nStep 4: Run the server\n\npython3 manage.py runserver\n\n\nTutorial:\nRegister users by providing their name, unique email and password.\n\n![image](https://user-images.githubusercontent.com/47332035/126826369-57eab90c-4973-47a3-9097-1d31d5809332.png)\n\n\nUser login:\n\n\n![image](https://user-images.githubusercontent.com/47332035/126826689-967d866b-d87d-48e5-bca3-37421ff9ef81.png)\n\n\nA unique JWT token is generated if valid credentials are passed. We create a custom cookie variable to store a token inside it.\n\nAnd finally the logout view. Here the cookie is completely destroyed using the built-in delete_cookie method.\n\n![image](https://user-images.githubusercontent.com/47332035/126827480-353bdf59-fb96-421b-abcd-3b1bab9fc798.png)\n\nFinally the cookie is destroyed when the user logs out of the application.\n\n\nHope you found this helpful. Hope you love it.\nCheers!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farvrao%2Fdjango-rest-framework-authentication","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farvrao%2Fdjango-rest-framework-authentication","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farvrao%2Fdjango-rest-framework-authentication/lists"}