Skip to main content

Django integration into IIS with Windows Authentication made easy.

Project description

Easy integration and deployment of Django projects into Windows Environments. Documentation is available at https://django-windowsauth.readthedocs.io/en/latest/

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',
]

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 can use

For any bug or issue, see how to create a GitHub Issue

Contributing

Download files

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

Source Distribution

django-windowsauth-1.1.tar.gz (4.2 kB view hashes)

Uploaded Source

Built Distribution

django_windowsauth-1.1-py3-none-any.whl (3.8 kB view hashes)

Uploaded Python 3

Supported by

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