Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
django-openid-auth
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
django-openid-auth
Commits
511a27aa
Commit
511a27aa
authored
Jun 15, 2009
by
James Henstridge
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a note about installing the python-openid library to the README.
parent
3c2afa27
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
7 deletions
+14
-7
README.txt
+14
-7
No files found.
README.txt
View file @
511a27aa
...
@@ -8,7 +8,14 @@ single signon systems.
...
@@ -8,7 +8,14 @@ single signon systems.
== Basic Installation ==
== Basic Installation ==
1. Add 'django_auth_openid' to INSTALLED_APPS for your application.
1. Install the Jan Rain Python OpenID library. It can be found at:
http://openidenabled.com/python-openid/
It can also be found in most Linux distributions packaged as
"python-openid". You will need version 2.2.0 or later.
2. Add 'django_auth_openid' to INSTALLED_APPS for your application.
At a minimum, you'll need the following in there:
At a minimum, you'll need the following in there:
INSTALLED_APPS = (
INSTALLED_APPS = (
...
@@ -18,7 +25,7 @@ single signon systems.
...
@@ -18,7 +25,7 @@ single signon systems.
'django_openid_auth',
'django_openid_auth',
)
)
2
. Add 'django_auth_openid.auth.OpenIDBackend' to
3
. Add 'django_auth_openid.auth.OpenIDBackend' to
AUTHENTICATION_BACKENDS. This should be in addition to the
AUTHENTICATION_BACKENDS. This should be in addition to the
default ModelBackend:
default ModelBackend:
...
@@ -27,17 +34,17 @@ single signon systems.
...
@@ -27,17 +34,17 @@ single signon systems.
'django.contrib.auth.backends.ModelBackend',
'django.contrib.auth.backends.ModelBackend',
)
)
3
. To create users automatically when a new OpenID is used, add the
4
. To create users automatically when a new OpenID is used, add the
following to the settings:
following to the settings:
OPENID_CREATE_USERS = True
OPENID_CREATE_USERS = True
4
. To have user details updated from OpenID Simple Registration data
5
. To have user details updated from OpenID Simple Registration data
each time they log in, add the following:
each time they log in, add the following:
OPENID_UPDATE_DETAILS_FROM_SREG = True
OPENID_UPDATE_DETAILS_FROM_SREG = True
5
. Hook up the login URLs to your application's urlconf with
6
. Hook up the login URLs to your application's urlconf with
something like:
something like:
urlpatterns = patterns('',
urlpatterns = patterns('',
...
@@ -46,7 +53,7 @@ single signon systems.
...
@@ -46,7 +53,7 @@ single signon systems.
...
...
)
)
6
. Configure the LOGIN_URL and LOGIN_REDIRECT_URL appropriately for
7
. Configure the LOGIN_URL and LOGIN_REDIRECT_URL appropriately for
your site:
your site:
LOGIN_URL = '/openid/login/'
LOGIN_URL = '/openid/login/'
...
@@ -55,7 +62,7 @@ single signon systems.
...
@@ -55,7 +62,7 @@ single signon systems.
This will allow pages that use the standard @login_required
This will allow pages that use the standard @login_required
decorator to use the OpenID login page.
decorator to use the OpenID login page.
7
. Rerun "python manage.py syncdb" to add the UserOpenID table to
8
. Rerun "python manage.py syncdb" to add the UserOpenID table to
your database.
your database.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment