Skip to main content

django-odoo-auth

Upload Python Package

Custom django auth backend for authorization via odoo

Quick start

  1. install module pip install django-odoo-auth
  2. Add odoo_auth to your INSTALLED_APPS setting like this:
INSTALLED_APPS = [
    # ...
    'odoo_auth',
]
  1. Add backend to your AUTHENTICATION_BACKENDS setting like this:
AUTHENTICATION_BACKENDS = (
    # ...
    'odoo_auth.backends.OdooBackend',
)
  1. 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'
  1. Run python manage.py migrate to create the odoo_auth models.
  2. 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)

Source distribution for django-odoo-auth 1.0.4.1
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

Release history Release notifications | RSS feed

This release

1.0.4.1 This release

1 release file

1.0.4

1 release file

1.0.3.1

1 release file

1.0.3

1 release file

1.0.2.1

1 release file

1.0.2

1 release file

1.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page