wiki:OpenIDServerInstallation

How to install Thiblo's Open ID server

This manual supposes that you already went through the installation procedure of thiblopy itself, so you already have Django edge and some other prerequisites.

There's one that you might not have yet:

sudo apt-get install python-elementtree

Install Open ID library

Download  Python Open ID combo package and install it with sudo python setup.py install.

Create a database

You can use MySQL or PostgreSQL as a database management system.

As Thiblo relies on PostgreSQL at this time, we suggest to use PostgreSQL for OpenID too.

If you followed the installation steps of thiblopy, you can use the following command to create the database:

createdb -E UTF-8 -U thiblo -h localhost thiblo_openid

On other platforms also make sure that you specified UTF-8 as a default encoding for your database:

CREATE DATABASE thiblo_openid WITH ENCODING = 'UNICODE'; # PostgreSQL

Configure Open ID server

You can see all default configuration values in settings.py, however, you should not put developer-specific values there.

Instead, create a file .mysettings.py in the thiblo/openid_server directory and put your configuration there. Here is the example:

TEMPLATE_DEBUG = DEBUG = True

DATABASE_NAME = 'thiblo_openid'
DATABASE_USER = 'thiblo'
DATABASE_PASSWORD = 'dbpass'
DATABASE_HOST = 'localhost'

TIME_ZONE = 'Europe/Budapest'
SECRET_KEY = 'dummy'

# Make sure this is a correct URL. Don't add trailing slash!
SERVER_URL = 'http://thiblo.dev:8000'

Create database structure

To create initial database structure move to your installation directory and run syncdb there:

cd ~/thiblo/openid_server
python manage.py syncdb

Here you will be asked to create a superuser -- do it, we will need this user in order to login:

That's all

Run

python manage.py runserver thiblo.dev:8000

and go look at

http://thiblo.dev:8000/username-you-created-running-syncdb

which is your identity page, and OpenID identity at once.