Commit 269d1c6c by James Henstridge

Delegate the OpenID URLs to django_contrib_auth.urls in the example

application.
parent d19078e8
......@@ -131,7 +131,7 @@ def login_complete(request, redirect_field_name=REDIRECT_FIELD_NAME):
openid_response = parse_openid_response(request)
if not openid_response:
return HttpResponse('No OpenID response')
return HttpResponse('This is an OpenID relying party endpoint.')
if openid_response.status == SUCCESS:
user = authenticate(openid_response=openid_response)
......
......@@ -3,8 +3,7 @@ import views
urlpatterns = patterns('',
(r'^$', views.index),
(r'^openid/login$', 'django_openid_auth.views.login_begin'),
(r'^openid/login/complete$', 'django_openid_auth.views.login_complete'),
(r'^openid/logout$', 'django.contrib.auth.views.logout'),
(r'^openid/', include('django_openid_auth.urls')),
(r'^logout$', 'django.contrib.auth.views.logout'),
(r'^private/$', views.require_authentication),
)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment