Django openid auth - first stab
Jan 6th, 2006 by Phil Dawes
I’ve been experimenting with adding openid authentication to django. I couldn’t find another software package to do this (although I did see this, which implies there is some other code out there)
Anyway - here’s mine so far.
The main problem I’ve hit is that the username column in the django authentication db schema (v0.90) only has 30 characters, so I can’t use the openid url as the username.
Instead I’m currently using the first 30 chars of an md5 hash of the url, which sucks. I probably need to create a new openid auth model which holds the openid url and adds a view for getting new users to create a unique username (or something). Or maybe I should contact the django developers about expanding this?… hmm..

Add New Comment
Viewing 5 Comments
Thanks. Your comment is awaiting approval by a moderator.
Do you already have an account? Log in and claim this comment.
Do you already have an account? Log in and claim this comment.
Do you already have an account? Log in and claim this comment.
Do you already have an account? Log in and claim this comment.
Do you already have an account? Log in and claim this comment.
Do you already have an account? Log in and claim this comment.
Add New Comment