Django authentication backend for Google's Identity Aware Proxy (IAP)
The full documentation is at https://django-iap-auth.readthedocs.io.
Install Django IAP Auth:
pip install django-iap-auth
To use the auth backend, add 'django_iap_auth.backend.IAPBackend'
to AUTHENTICATION_BACKENDS.
AUTHENTICATION_BACKENDS = [
'django_iap_auth.backend.IAPBackend',
]
To use the iap auto login middleware, add 'django_iap_auth.middleware.IapUserLoginMiddleware'
to MIDDLEWARE.
MIDDLEWARE = [
...
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django_iap_auth.middleware.IapUserLoginMiddleware',
...
]
- TODO
Tools used in rendering this package: