django-jauth-3.6.3
توضیحات
Simple OAuth2 login support for Django and Django REST Framework projects
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | django-jauth-3.6.3 |
| نام | django-jauth |
| نسخه کتابخانه | 3.6.3 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Jani Kajala |
| ایمیل نویسنده | kajala@gmail.com |
| آدرس صفحه اصلی | https://github.com/kajala/django-jauth |
| آدرس اینترنتی | https://pypi.org/project/django-jauth/ |
| مجوز | MIT licence, see LICENCE.txt |
django-jauth
============
Simple OAuth2 authentication client library for Django and Django REST framework projects.
Django 3.0+ support. Unit test coverage 51%.
Features
========
* Supports simple integration both to single page apps (via postMessage) and traditional Django apps (via redirect)
* Does not require any JavaScript libraries
This is by no means comprehensive OAuth2 package but simple and serves single purpose.
## Supported / Tested OAuth2 Providers
* Facebook
* Google
## Other Features
* Supports deauthorize and delete Facebook callbacks
Configuration
=============
settings.JAUTH_AUTHENTICATION_SUCCESS_REDIRECT:
* Set this as URL of user home page after login. Set as None for single-page apps which open separate dialog for login (Value None causes postMessage to be called for the parent window with authentication result)
settings.JAUTH_AUTHENTICATION_ERROR_REDIRECT:
* Set this as URL of login page with querystring parameter "error" as error message. Can be None for single page apps.
Install
=======
* pip install django-jauth
نحوه نصب
نصب پکیج whl django-jauth-3.6.3:
pip install django-jauth-3.6.3.whl
نصب پکیج tar.gz django-jauth-3.6.3:
pip install django-jauth-3.6.3.tar.gz