Skip to main content
Documentation Status Maintained https://static.pepy.tech/personalized-badge/django-windowsauth?period=total&units=international_system&left_color=grey&right_color=blue&left_text=Downloads&service=github

Easy integration and deployment of Django projects into Windows Environments.

Requirements:

  • Python (3.6, 3.7, 3.8, 3.9)

  • Django (2.2, 3.0, 3.1)

Features

Quick Start

  1. Install with pip install django-windowsauth

  2. Run py manage.py migrate windows_auth

  3. Add “fastcgi application” with wfastcgi-enable

  4. Configure project settings

INSTALLED_APPS = [
    "windows_auth",
]

MIDDLEWARE = [
    # ...
    'django.contrib.auth.middleware.AuthenticationMiddleware',
    'django.contrib.auth.middleware.RemoteUserMiddleware',
    'windows_auth.middleware.UserSyncMiddleware',
    # ...
]

AUTHENTICATION_BACKENDS = [
    "windows_auth.backends.WindowsAuthBackend",
    "django.contrib.auth.backends.ModelBackend",
]

WAUTH_DOMAINS = {
    "<your domain's NetBIOS Name> (EXAMPLE)": {
        "SERVER": "<domain FQDN> (example.local)",
        "SEARCH_SCOPE": "<search scope> (DC=example,DC=local)",
        "USERNAME": "<bind account username>",
        "PASSWORD": "<bind account password>",
    }
}

# optional
STATIC_URL = '/static/'
STATIC_ROOT = BASE_DIR / "static"

MEDIA_URL = '/media/'
MEDIA_ROOT = BASE_DIR / "media"
  1. Generate web.config files with py manage.py createwebconfig -s -m

  2. Create new IIS Website from the project files

For more details visit the docs for installation: https://django-windowsauth.readthedocs.io/en/latest/installation/installation.html

Getting help

In case you have trouble while using this module, you may use the GitHub Disccussion.

For any bug or issue, open a new GitHub Issue.

Contributing

Release files for django-windowsauth 1.4.0

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

Source distribution (sdist)

Source distribution for django-windowsauth 1.4.0
File Size Uploaded Provenance
django-windowsauth-1.4.0.tar.gz 28.3 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for django-windowsauth 1.4.0
File Interpreter ABI Platform
django_windowsauth-1.4.0-py3-none-any.whl Python 3 none any Details

Total release size: 66.4 kB

Release files / django-windowsauth-1.4.0.tar.gz

Download URL django-windowsauth-1.4.0.tar.gz
Size 28.3 kB
Tags Source
SHA-256 checksum
How to use checksums
1b865302b15a4e985df352f55fc564a25f0552be870b2aaf3555f965f19340b6
BLAKE2b-256 checksum
How to use checksums
6c868bcc24fa7a06e9747de2c9c9345a799ef00dd11d62ee37d3f375ab8f54c8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.3

Release files / django_windowsauth-1.4.0-py3-none-any.whl

Download URL django_windowsauth-1.4.0-py3-none-any.whl
Size 38.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
dfd7d14710c1b589394ed13c5bb1a04ab73f26c3e3e28025c468b241915aeaa9
BLAKE2b-256 checksum
How to use checksums
a481aed1043222c2c1e95738215245118ba044705f6115ec4b9cfbe911ae1f2a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.3

Security for django-windowsauth 1.4.0

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