django-basic-authentication-decorator-0.9
توضیحات
Decorator to provide Basic Authentication for Django Views
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | django-basic-authentication-decorator-0.9 |
| نام | django-basic-authentication-decorator |
| نسخه کتابخانه | 0.9 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | UNKNOWN |
| ایمیل نویسنده | UNKNOWN |
| آدرس صفحه اصلی | https://github.com/m7v8/django-basic-authentication-decorator |
| آدرس اینترنتی | https://pypi.org/project/django-basic-authentication-decorator/ |
| مجوز | BSD |
What
=====
This is a decorator for a django view that will request Basic Authentication.
This is a copy of https://djangosnippets.org/snippets/243/
Why
====
There are serveral reasons for this Package:
* I wanted Basic Authentication for just a couple of views. So the RemoteUserAuthBackend was no option. Also I did not want to configure the webserver to do Basic Authentication.
* As you can read in the comments of https://djangosnippets.org/snippets/243/ there are some bugs in it - so I wanted to have them fixed - but also documented that they were fixed and in the end provide a fixed version of it
* Also I just want to install it via pip
How to use
===========
Apache
-------
Add this to your apache config to tell apache to pass the Authorication Headers to your application:
WSGIPassAuthorization On
نحوه نصب
نصب پکیج whl django-basic-authentication-decorator-0.9:
pip install django-basic-authentication-decorator-0.9.whl
نصب پکیج tar.gz django-basic-authentication-decorator-0.9:
pip install django-basic-authentication-decorator-0.9.tar.gz