Skip to main content

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

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:

python manage.py makemigrations djangoauthtoken

Run command to migrate:

python manage.py migrate

Run command to create superuser

python manage.py createsuperuser

Things to do:

  • Add api for Token.
  • Add api for login.
  • Add api for RefreshToken.
  • Add manager for create token.
  • Add serializer for user.
  • Add manager for create user.
  • Add api for user sign up.
  • Add github Actions.
  • Add pypi module push in this code base.
  • [] Add a custom command to delete invalid tokens.
  • [] Update README with screenshots and other details.

Metadata

Release files for auth-token-django 0.2.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for auth-token-django 0.2.5
File Size Uploaded Provenance
auth_token_django-0.2.5.tar.gz 10.5 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for auth-token-django 0.2.5
File Interpreter ABI Platform
auth_token_django-0.2.5-py3-none-any.whl Python 3 none any Details

Total release size: 27.4 kB

Release files / auth_token_django-0.2.5.tar.gz

Download URL auth_token_django-0.2.5.tar.gz
Size 10.5 kB
Tags Source
SHA-256 checksum
How to use checksums
46b405201352f85a3c92edca4709b0e6201bce1b92c1ab3f3ca5cda10b326ee6
BLAKE2b-256 checksum
How to use checksums
3f7283b2c68619228087f857fb651c22f1fdf0c3b416c66472124bb617a71739
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.4

Release files / auth_token_django-0.2.5-py3-none-any.whl

Download URL auth_token_django-0.2.5-py3-none-any.whl
Size 16.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
742b1bffdcb7a714c767a6dab4f678c4783b7544686287701086a40168f9fd53
BLAKE2b-256 checksum
How to use checksums
fc57d5f03f5045ea2b5405b0aa0df041672ffeccf27dc3e5bc0db9d9d50f0c06
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.4

Security for auth-token-django 0.2.5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page