django auth anywhere是一个django应用程序,它允许非drf视图使用drf后端进行身份验证。
django-auth-anywhere的Python项目详细描述
django auth anywhere是一个django应用程序,它允许在整个django应用程序中使用“django rest framework”身份验证后端。这有助于使用“json web tokens”保护令牌身份验证背后的非api端点。_ django rest framework:http://www.django-rest-framework.org/
…_ json web令牌:http://getblimp.github.io/django rest framework jwt/
要求
---------
此测试只使用了:
*python:3.5
*django:1.8、1.9、1.10
安装程序
-
代码块:sh
pip在任何地方安装django auth
,然后将其添加到已安装的应用程序中:
…代码块::python
installed_apps=(
…
,‘auth_anywhere’,
…
)
代码块::python
middleware_classes=[
…
“auth_anywhere.middleware.authenticationmiddleware”,
“django.middleware.common.commonmiddleware”,
…
]
credits
----
“django auth anywhere”是由morgante pell(`@morgante
<;https://github.com/morgante>;` ` ` `,灵感来自anthony lobko(`@amelius15
<;https://github.com/amelius15>;`
>历史
<0.0.2(2016-09-09-30)
…_ json web令牌:http://getblimp.github.io/django rest framework jwt/
要求
---------
此测试只使用了:
*python:3.5
*django:1.8、1.9、1.10
安装程序
-
代码块:sh
pip在任何地方安装django auth
,然后将其添加到已安装的应用程序中:
…代码块::python
installed_apps=(
…
,‘auth_anywhere’,
…
)
代码块::python
middleware_classes=[
…
“auth_anywhere.middleware.authenticationmiddleware”,
“django.middleware.common.commonmiddleware”,
…
]
credits
----
“django auth anywhere”是由morgante pell(`@morgante
<;https://github.com/morgante>;` ` ` `,灵感来自anthony lobko(`@amelius15
<;https://github.com/amelius15>;`
>历史
<0.0.2(2016-09-09-30)