{"id":18829879,"url":"https://github.com/harshuljain13/djangorestauth","last_synced_at":"2026-01-23T20:30:16.088Z","repository":{"id":49700902,"uuid":"83213532","full_name":"harshuljain13/DjangoRestAuth","owner":"harshuljain13","description":"This Repository consists of implementation of various authentication techniques used in djangoRestFramework.","archived":false,"fork":false,"pushed_at":"2021-06-10T19:41:27.000Z","size":24,"stargazers_count":2,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-30T06:27:26.108Z","etag":null,"topics":["authentication","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/harshuljain13.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}},"created_at":"2017-02-26T14:12:31.000Z","updated_at":"2023-03-08T04:16:49.000Z","dependencies_parsed_at":"2022-09-07T16:14:13.765Z","dependency_job_id":null,"html_url":"https://github.com/harshuljain13/DjangoRestAuth","commit_stats":null,"previous_names":["harshuljain13/djangorestauth"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/harshuljain13%2FDjangoRestAuth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/harshuljain13%2FDjangoRestAuth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/harshuljain13%2FDjangoRestAuth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/harshuljain13%2FDjangoRestAuth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/harshuljain13","download_url":"https://codeload.github.com/harshuljain13/DjangoRestAuth/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239765506,"owners_count":19693149,"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-rest-framework","rest-api"],"created_at":"2024-11-08T01:46:53.958Z","updated_at":"2026-01-23T20:30:16.028Z","avatar_url":"https://github.com/harshuljain13.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DjangoRestAuth\nThis Repository consists of implementation of various authentication techniques used in djangoRestFramework.\n\n```\ngit clone https://github.com/harshul1610/DjangoRestAuth.git\nvirtualenv -p python venv\nsource venv/bin/activate\npip install -r requirements.txt\npython manage.py migrate\npython manage.py shell\n\u003e\u003e\u003e from django.contrib.auth.models import User\n\u003e\u003e\u003e u = User.objects.create_user('harshul','harshul1234@gmail.com','harshulpass')\n\u003e\u003e\u003e u.save()\n```\n\n## Basic Authentication in Homeapp\n\n### Get Data providing Username and Password\n```\ncurl -X GET http://127.0.0.1:8000/notes/ -u harshul:harshulpass\n```\n### Post Data providing Username and Password\n```\ncurl -d \"note_title=https://harshul1610.github.io\u0026note_description=this is my personal site and blog domain\" http://127.0.0.1:8000/notes/ -u harshul:harshulpass\n```\n\n\n## TokenAuthentication in Tokenapp\n\n### Get Token\n```\ncurl -d \"username=harshul\u0026password=harshulpass\" http://127.0.0.1:8000/api-token-auth/\n```\n### Post data using Token\n```\ncurl -d \"url_title=https://harshul1610.github.io\u0026url_description=this is my personal site and blog domain\" http://127.0.0.1:8000/urls/ -H 'Authorization: Token e91c548ad661f7ff3e74813dfb06d18a9c6daee3'\n```\n### Get Data using Token\n```\ncurl -X GET http://127.0.0.1:8000/urls/ -H 'Authorization: Token e91c548ad661f7ff3e74813dfb06d18a9c6daee3'\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fharshuljain13%2Fdjangorestauth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fharshuljain13%2Fdjangorestauth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fharshuljain13%2Fdjangorestauth/lists"}