Skip to main content
https://travis-ci.org/frog32/django-admin-sso.png?branch=master https://coveralls.io/repos/frog32/django-admin-sso/badge.png?branch=master https://pypip.in/v/django-admin-sso/badge.png

Django admin SSO lets users login to a django admin using an openid provider. It then looks up the email address of the new user and looks up the rights for him.

Installation

  1. Make sure you have a working django project setup.

  2. Install django-admin-sso using pip:

    pip install django-admin-sso
  3. Add admin_sso to INSTALLED_APPS in your settings.py file:

    INSTALLED_APPS = (
        ...
        'admin_sso',
        ...
    )
  4. Add the django-admin authentication backend:

    AUTHENTICATION_BACKENDS = (
        'admin_sso.auth.DjangoSSOAuthBackend',
        'django.contrib.auth.backends.ModelBackend',
    )
  5. Insert your oauth client id and secret key into your settings file:

    DJANGO_ADMIN_SSO_OAUTH_CLIENT_ID = 'your client id here'
    DJANGO_ADMIN_SSO_OAUTH_CLIENT_SECRET = 'your client secret here'

If you don’t specify a client id django-admin-sso will fallback to openid.

  1. Run syncdb to create the needed database tables.

  2. Log into the admin and add an Assignment.

Assignments

Any Remote User -> Local User X

  • Select Username mode “any”.

  • Set Domain to your authenticating domain.

  • Select your local user from the User drop down.

Remote User -> Local User

  • Select Username mode “matches” or “don’t match”.

  • Set username to [not] match by.

  • Set Domain to your authenticating domain.

  • Select your local user from the User drop down.

Changelog

1.0

Download files

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

Source Distribution

django-admin-sso-1.0.0.tar.gz (8.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_admin_sso-1.0.0-py2-none-any.whl (13.7 kB view details)

Uploaded Python 2

File details

Details for the file django-admin-sso-1.0.0.tar.gz.

File metadata

File hashes

Hashes for django-admin-sso-1.0.0.tar.gz
Algorithm Hash digest
SHA256 33f4371f29755896f43f011c4d4fd1c21bcbd0bb471cd84cce08b03d37dea733
MD5 419e464a8ea151ef26ed8050bcad2ad5
BLAKE2b-256 17332b9935312d572ebc169d7c78e180c1d8b1b215ccdbd06fb65d56f30b4c07

See more details on using hashes here.

File details

Details for the file django_admin_sso-1.0.0-py2-none-any.whl.

File metadata

File hashes

Hashes for django_admin_sso-1.0.0-py2-none-any.whl
Algorithm Hash digest
SHA256 ad7855127593fc0b3db18e3bdc5b7231cf51a7b016b5b94b9d4cf968e74f1e14
MD5 e6f556afe824e978b1cd9f58e39a83a5
BLAKE2b-256 9f920571a537aa8825edabcb6b2f1b69746e01453d91606e014dcc03a97fd42b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page