{"id":13415516,"url":"https://github.com/iMerica/dj-rest-auth","last_synced_at":"2025-03-14T23:30:45.182Z","repository":{"id":38289950,"uuid":"243840407","full_name":"iMerica/dj-rest-auth","owner":"iMerica","description":"Authentication for Django Rest Framework","archived":false,"fork":false,"pushed_at":"2024-08-21T12:36:48.000Z","size":863,"stargazers_count":1670,"open_issues_count":223,"forks_count":313,"subscribers_count":21,"default_branch":"master","last_synced_at":"2024-10-29T11:16:54.261Z","etag":null,"topics":["authentication","django","django-rest-framework","jwt","python","rest-api"],"latest_commit_sha":null,"homepage":"https://dj-rest-auth.readthedocs.io/en/latest/index.html","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/iMerica.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":"AUTHORS","dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-02-28T19:35:48.000Z","updated_at":"2024-10-28T10:54:26.000Z","dependencies_parsed_at":"2023-02-10T10:30:48.200Z","dependency_job_id":"e767e238-d68c-4482-a655-7361fcc908dc","html_url":"https://github.com/iMerica/dj-rest-auth","commit_stats":{"total_commits":708,"total_committers":201,"mean_commits":"3.5223880597014925","dds":0.7909604519774012,"last_synced_commit":"5498963cb3b038cd0bdd95e124ed9e6e6757c196"},"previous_names":["jazzband/dj-rest-auth"],"tags_count":65,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iMerica%2Fdj-rest-auth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iMerica%2Fdj-rest-auth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iMerica%2Fdj-rest-auth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iMerica%2Fdj-rest-auth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iMerica","download_url":"https://codeload.github.com/iMerica/dj-rest-auth/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243663201,"owners_count":20327299,"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","jwt","python","rest-api"],"created_at":"2024-07-30T21:00:49.957Z","updated_at":"2025-03-14T23:30:45.177Z","avatar_url":"https://github.com/iMerica.png","language":"Python","funding_links":[],"categories":["Third-Party Packages","Python","Authorization \u0026 Authentication","Best Django Admin Interface Resources","Authentication \u0026 Authorization","D"],"sub_categories":["APIs","**🖥️ Django REST Framework \u0026 API-Related Packages**"],"readme":"# Dj-Rest-Auth\n[![\u003ciMerica\u003e](https://github.com/iMerica/dj-rest-auth/actions/workflows/main.yml/badge.svg)](https://github.com/iMerica/dj-rest-auth/actions/workflows/main.yml/)\n\n\nDrop-in API endpoints for handling authentication securely in Django Rest Framework. Works especially well \nwith SPAs (e.g., React, Vue, Angular), and Mobile applications. \n\n## Requirements\n- Django \u003e= 4.2 (See Unit Test Coverage in CI)\n- Python \u003e= 3.8\n\n## Quick Setup\n\nInstall package\n\n    pip install dj-rest-auth\n    \nAdd `dj_rest_auth` app to INSTALLED_APPS in your django settings.py:\n\n```python\nINSTALLED_APPS = (\n    ...,\n    'rest_framework',\n    'rest_framework.authtoken',\n    ...,\n    'dj_rest_auth'\n)\n```\n    \nAdd URL patterns\n\n```python\nurlpatterns = [\n    path('dj-rest-auth/', include('dj_rest_auth.urls')),\n]\n```\n    \n\n(Optional) Use Http-Only cookies\n\n```python\nREST_AUTH = {\n    'USE_JWT': True,\n    'JWT_AUTH_COOKIE': 'jwt-auth',\n}\n```\n\n### Testing\n\nInstall required modules with `pip install -r  dj_rest_auth/tests/requirements.txt`\n\nTo run the tests within a virtualenv, run `python runtests.py` from the repository directory.\nThe easiest way to run test coverage is with [`coverage`](https://pypi.org/project/coverage/),\nwhich runs the tests against all supported Django installs. To run the test coverage \nwithin a virtualenv, run `coverage run ./runtests.py` from the repository directory then run `coverage report`.\n\n#### Tox\n\nTesting may also be done using [`tox`](https://pypi.org/project/tox/), which\nwill run the tests against all supported combinations of Python and Django.\n\nInstall tox, either globally or within a virtualenv, and then simply run `tox`\nfrom the repository directory. As there are many combinations, you may run them\nin [`parallel`](https://tox.readthedocs.io/en/latest/config.html#cmdoption-tox-p)\nusing `tox --parallel`.\n\nThe `tox.ini` includes an environment for testing code [`coverage`](https://pypi.org/project/coverage/)\nand you can run it and view this report with `tox -e coverage`.\n\nLinting may also be performed via [`flake8`](https://pypi.org/project/flake8/)\nby running `tox -e flake8`.\n\n### Documentation\n\nView the full documentation here: https://dj-rest-auth.readthedocs.io/en/latest/index.html\n\n\n### Acknowledgements\n\nThis project began as a fork of `django-rest-auth`. Big thanks to everyone who contributed to that repo!\n\n#### A note on Django AllAuth from @iMerica\n\nThis project has optional and very narrow support for Django-AllAuth. As the maintainer, I have no interest in making this package support all use cases in Django-AllAuth. I would rather focus on improving the quality of the base functionality or focus on OIDC support instead. Pull requests that extend or add more support for Django-AllAuth will most likely be declined. Do you disagree? Feel free to fork this repo!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FiMerica%2Fdj-rest-auth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FiMerica%2Fdj-rest-auth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FiMerica%2Fdj-rest-auth/lists"}