Requirements

Python OpenID library is required to run openid_provider.

Optional you can add django_openid_auth for its DjangoOpenIDStore - otherwise openid_provider will use FileOpenIDStore which is less secure in shared hosting environments.

Basic Installation

  1. Copy openid_provider into your project directory (or link to it).

  2. Add 'openid_provider' to INSTALLED_APPS, openid_provider requre at least:

    'django.contrib.auth',
    'django.contrib.sessions',
    'openid_provider',
    
  3. Add openid_provider/urls.py to your urlpatterns, e.g.:

    urlpatterns = patterns('',
        ...
        url(r'^openid/', include('openid_provider.urls')),
        ...
    )
  4. Run:

    python manage.py syncdb

    to create required tables to your database.

What is not provided

This application does not include most basic template every django project should have: base.html. You should have base.html file in one of your settings.TEMPLATE_DIRS directories and it should contain 3 base blocks:

  • title,
  • extrahead,
  • content

(see DosAndDontsForApplicationWriters and django template inheritance)

If your base template is named differently you should override openid_provider/base.html to contain something like:

{% extends "your_base_template_name.html" %}

If your base template have different blocks you could easily remap those:

{% block your_content_block_name %}{% block content %}{% endblock %}{% endblock %}

Table Of Contents

Previous topic

Introduction

Next topic

Usage