# djangoauthtoken
Django auth solution for Token creation/updation for a session.
## Add Djangoauthtoken in your project.
Add `djangoauthtoken` in your INSTALLED_APPS settings to see in action.
## Add This seeting is your project
```python
REST_FRAMEWORK = {
'DEFAULT_AUTHENTICATION_CLASSES': [
'djangoauthtoken.middleware.CustomTokenAuthentication'
],
'DEFAULT_PERMISSION_CLASSES': (
'rest_framework.permissions.IsAuthenticated',
),
'DEFAULT_FILTER_BACKENDS': ['django_filters.rest_framework.DjangoFilterBackend'],
'DEFAULT_RENDERER_CLASSES': [
'rest_framework.renderers.JSONRenderer',
'rest_framework.renderers.BrowsableAPIRenderer',
'rest_framework_xml.renderers.XMLRenderer',
],
}
```
### Run make migratons command:
```sh
python manage.py makemigrations djangoauthtoken
```
## Run command to migrate:
```sh
python manage.py migrate
```
## Run command to create superuser
```sh
python manage.py createsuperuser
```
Things to do:
- [X] Add api for Token.
- [X] Add api for login.
- [X] Add api for RefreshToken.
- [X] Add manager for create token.
- [X] Add serializer for user.
- [X] Add manager for create user.
- [X] Add api for user sign up.
- [X] Add github Actions.
- [X] Add pypi module push in this code base.
- [] Add a custom command to delete invalid tokens.
- [] Update README with screenshots and other details.
Raw data
{
"_id": null,
"home_page": "https://github.com/Shivin01/django_auth_token",
"name": "auth-token-django",
"maintainer": null,
"docs_url": null,
"requires_python": null,
"maintainer_email": null,
"keywords": "django auth token",
"author": "Shivin Agarwal",
"author_email": "shivin.agarwal15@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/3f/72/83b2c68619228087f857fb651c22f1fdf0c3b416c66472124bb617a71739/auth_token_django-0.2.5.tar.gz",
"platform": null,
"description": "# djangoauthtoken\n\nDjango auth solution for Token creation/updation for a session.\n\n## Add Djangoauthtoken in your project.\n\nAdd `djangoauthtoken` in your INSTALLED_APPS settings to see in action.\n\n## Add This seeting is your project\n\n```python\nREST_FRAMEWORK = {\n 'DEFAULT_AUTHENTICATION_CLASSES': [\n 'djangoauthtoken.middleware.CustomTokenAuthentication'\n ],\n 'DEFAULT_PERMISSION_CLASSES': (\n 'rest_framework.permissions.IsAuthenticated',\n ),\n 'DEFAULT_FILTER_BACKENDS': ['django_filters.rest_framework.DjangoFilterBackend'],\n 'DEFAULT_RENDERER_CLASSES': [\n 'rest_framework.renderers.JSONRenderer',\n 'rest_framework.renderers.BrowsableAPIRenderer',\n 'rest_framework_xml.renderers.XMLRenderer',\n ],\n}\n```\n\n### Run make migratons command:\n\n```sh\npython manage.py makemigrations djangoauthtoken\n```\n\n## Run command to migrate:\n\n```sh\npython manage.py migrate\n```\n\n## Run command to create superuser\n\n```sh\npython manage.py createsuperuser\n```\n\nThings to do:\n\n- [X] Add api for Token.\n- [X] Add api for login.\n- [X] Add api for RefreshToken.\n- [X] Add manager for create token.\n- [X] Add serializer for user.\n- [X] Add manager for create user.\n- [X] Add api for user sign up.\n- [X] Add github Actions.\n- [X] Add pypi module push in this code base.\n- [] Add a custom command to delete invalid tokens.\n- [] Update README with screenshots and other details.\n\n\n\n\n",
"bugtrack_url": null,
"license": null,
"summary": "Django token authentication",
"version": "0.2.5",
"project_urls": {
"Homepage": "https://github.com/Shivin01/django_auth_token"
},
"split_keywords": [
"django",
"auth",
"token"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "fc57d5f03f5045ea2b5405b0aa0df041672ffeccf27dc3e5bc0db9d9d50f0c06",
"md5": "a63c18eb8dd9eeb3347c4e722b53a448",
"sha256": "742b1bffdcb7a714c767a6dab4f678c4783b7544686287701086a40168f9fd53"
},
"downloads": -1,
"filename": "auth_token_django-0.2.5-py3-none-any.whl",
"has_sig": false,
"md5_digest": "a63c18eb8dd9eeb3347c4e722b53a448",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 16948,
"upload_time": "2024-07-03T04:39:18",
"upload_time_iso_8601": "2024-07-03T04:39:18.727391Z",
"url": "https://files.pythonhosted.org/packages/fc/57/d5f03f5045ea2b5405b0aa0df041672ffeccf27dc3e5bc0db9d9d50f0c06/auth_token_django-0.2.5-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "3f7283b2c68619228087f857fb651c22f1fdf0c3b416c66472124bb617a71739",
"md5": "8b5e596af840340965f2b17fe9676625",
"sha256": "46b405201352f85a3c92edca4709b0e6201bce1b92c1ab3f3ca5cda10b326ee6"
},
"downloads": -1,
"filename": "auth_token_django-0.2.5.tar.gz",
"has_sig": false,
"md5_digest": "8b5e596af840340965f2b17fe9676625",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 10492,
"upload_time": "2024-07-03T04:39:20",
"upload_time_iso_8601": "2024-07-03T04:39:20.349247Z",
"url": "https://files.pythonhosted.org/packages/3f/72/83b2c68619228087f857fb651c22f1fdf0c3b416c66472124bb617a71739/auth_token_django-0.2.5.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-07-03 04:39:20",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "Shivin01",
"github_project": "django_auth_token",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"requirements": [],
"lcname": "auth-token-django"
}