This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description

Generate login URL’s for unstandardized SSO systems.

What is it?

We all know it is better for single sign-on systems to make use of properly standardized, tested and known secure protocols. That it is bad practise to put login tokens in HTTP query parameters.

However, sometimes things just aren’t as you wish they would be. Bad API’s are out there and are numerous. And sometimes, we cannot avoid having to talk to them. That’s what this module is for:

It allows configurable plugins to generate login URL’s and use a RequestContextProcessor to make them available in templates.


Well tested and stable, though documentation is still a work in progress.


Tested to work with Django 1.4, 1.5 and 1.6 and Python 2.6 as well as 2.7.


Please refer to requirements.txt for an updated list of required packages.


There are two types of settigns in this package: common settings across plugins and plugin specifc settings. Currently the only common setting is URL_SSO_PLUGINS which lists the enabled plugins. Example:


Also, be sure to enable the RequestContextProcessor if you want the URL’s to be available in your template context (and you do):



Currently, SSO for two systems are implemented:


Plugin name: url_sso.plugins.intershift.intershift_plugin

For each configured site in sites (see below), this plugin makes a URL available by the following name:


Example settings:

    # Secret key as specified by Intershift
    'secret': '12345678',
    # Sites enabled for SSO
    'sites': {
        'site1': {
            # Users never have access to site1
            'has_access': lambda request: False,
            'url': '',
            'has_access': lambda request: request.user.groups.filter(name='some_group').exists()
        'site2': {
            # Users always have acces to site2
            'has_access': lambda request: True,
            'url': '',
        'site3': {
            # No explicit access rules; same result as site2
            'url': '',
    # Key expiration in seconds, use one day here
    'key_expiration': 86400

Infoland iProva

Plugin name: url_sso.plugins.iprova.iprova_plugin

This plugin makes the following login URL’s available, depending on which services are configured in the services setting below:


Example settings:

URL_SSO_IPROVA = iprova_settings = {
    # Service root URL
    'root_url': '',

    # Services available for SSO
    'services': ('management', 'idocument', 'iportal', 'itask'),

    # Key expiration in seconds, use one hour here
    'key_expiration': 3600,

    'application_id': 'SharepointIntranet_Production',

    'has_access': lambda request, service: request.user.groups.filter(name='some_group').exists()


Tests for pull req’s and the master branch are automatically run through Travis CI.


This application is released under the GNU Affero General Public License version 3.

Release History

Release History


This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
django_url_sso-0.9-py2.py3-none-any.whl (43.7 kB) Copy SHA256 Checksum SHA256 2.7 Wheel Feb 10, 2014
django-url-sso-0.9.tar.gz (37.8 kB) Copy SHA256 Checksum SHA256 Source Feb 10, 2014

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS HPE HPE Development Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting