Skip to main content

Custom django auth backend for authorization via odoo

Project description

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')

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-odoo-auth-1.0.4.1.tar.gz (7.0 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page