django-odoo-auth
Custom django auth backend for authorization via odoo
Quick start
- install module
pip install django-odoo-auth - Add odoo_auth to your INSTALLED_APPS setting like this:
INSTALLED_APPS = [
# ...
'odoo_auth',
]
- Add backend to your AUTHENTICATION_BACKENDS setting like this:
AUTHENTICATION_BACKENDS = (
# ...
'odoo_auth.backends.OdooBackend',
)
- Edit the information to connect to your server Odoo in
settings.py:
ODOO_SERVER_URL = 'https://exmaple.com'
ODOO_SERVER_PORT = 443 # this optional
ODOO_SERVER_DBNAME = 'database'
- Run
python manage.py migrateto create the odoo_auth models. - For call odoo_auth, use standard authenticate:
from django.contrib.auth import authenticate
user = authenticate(username='username', password='password')
Release files for django-odoo-auth 1.0.4.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| django-odoo-auth-1.0.4.1.tar.gz | 7.0 kB | Details |
Release files / django-odoo-auth-1.0.4.1.tar.gz
| Download URL | django-odoo-auth-1.0.4.1.tar.gz |
|---|---|
| Size | 7.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b9cd724c84fc179adb5bf30586d647ac198cedaf430746a3e7cf0ddc6d25df1d
|
|
BLAKE2b-256 checksum How to use checksums |
b5dcc9fd3d1ccc533fe3c98743b9ebf3a25fc350199611382aa1bd0ad53a8feb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6
|