Skip to main content

No project description provided

Project description

pmd-django

dev

Provides the Django management command python manage.py dev

auth middleware

To use the auth middleware:

  1. List pmd_django in the INSTALLED_APPS in settings.py
INSTALLED_APPS = [
    "pmd_django",
    ...
]
  1. List pmd_django.auth.api_key_middleware in the MIDDLEWARE just underneath django.contrib.auth.middleware.AuthenticationMiddleware
MIDDLEWARE = [
    "django.middleware.security.SecurityMiddleware",
    "whitenoise.middleware.WhiteNoiseMiddleware",
    "django.contrib.sessions.middleware.SessionMiddleware",
    "corsheaders.middleware.CorsMiddleware",
    "django.middleware.common.CommonMiddleware",
    "django.contrib.auth.middleware.AuthenticationMiddleware",
    "pmd_django.auth.api_key_middleware",
    "django.contrib.messages.middleware.MessageMiddleware",
    "django.middleware.clickjacking.XFrameOptionsMiddleware",
]
  1. Optionally add USER_API_KEY = env.str("USER_API_KEY") to settings.py
  2. Optionally add USER_AUTH_FILTERS to settings.py. This should be a list of functions that will get passed a request object. The function should return true if the middleware should authorize the request.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pmd_django-1.1.0.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pmd_django-1.1.0-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

Details for the file pmd_django-1.1.0.tar.gz.

File metadata

  • Download URL: pmd_django-1.1.0.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for pmd_django-1.1.0.tar.gz
Algorithm Hash digest
SHA256 1208209e7510168cee7f03971b768dc8b09250ae869811bbf80534731826aeb4
MD5 76a8b67bb53214c93e0e5f009849e619
BLAKE2b-256 a568a484efbab952e7535874217a0b0bd2437b8406488552dd287765a302f021

See more details on using hashes here.

Provenance

The following attestation bundles were made for pmd_django-1.1.0.tar.gz:

Publisher: publish.yml on TechServ-Consulting-Training-Ltd/pmd-django

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pmd_django-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: pmd_django-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for pmd_django-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 19882128d945437fce2ff995633cf1c60de1679454f22d3471216af6cd9d5bbb
MD5 1cd57a73b2d5bbdd1299b6016a3b280d
BLAKE2b-256 933c7b89dbfa54a87804c9407b0f3d65f11ef1865f09cc479212d4b8fa5ad2b1

See more details on using hashes here.

Provenance

The following attestation bundles were made for pmd_django-1.1.0-py3-none-any.whl:

Publisher: publish.yml on TechServ-Consulting-Training-Ltd/pmd-django

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page