forked from agiliq/Django-Socialauth
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathurls.py
40 lines (36 loc) · 2.6 KB
/
urls.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
from django.conf.urls.defaults import *
from openid_consumer.views import begin, complete, signout
from django.views.generic.simple import direct_to_template
from django.conf import settings
#Login Views
urlpatterns = patterns('socialauth.views',
url(r'^facebook_login/xd_receiver\.htm$', direct_to_template, {'template':'socialauth/xd_receiver.htm'}, name='socialauth_xd_receiver'),
url(r'^facebook_login/$', 'facebook_login', name='socialauth_facebook_login'),
url(r'^facebook_login/done/$', 'facebook_login_done', name='socialauth_facebook_login_done'),
url(r'^login/$', 'login_page', name='socialauth_login_page'),
url(r'^openid_login/$', 'openid_login_page', name='socialauth_openid_login_page'),
url(r'^twitter_login/$', 'twitter_login', name='socialauth_twitter_login'),
url(r'^twitter_login/done/$', 'twitter_login_done', name='socialauth_twitter_login_done'),
url(r'^linkedin_login/$', 'linkedin_login', name='socialauth_linkedin_login'),
url(r'^linkedin_login/done/$', 'linkedin_login_done', name='socialauth_linkedin_login_done'),
url(r'^yahoo_login/$', 'yahoo_login', name='socialauth_yahoo_login'),
url(r'^yahoo_login/complete/$', complete, name='socialauth_yahoo_complete'),
url(r'^gmail_login/$', 'gmail_login', name='socialauth_google_login'),
url(r'^gmail_login/complete/$', complete, name='socialauth_google_complete'),
url(r'^openid/$', 'openid_login', name='socialauth_openid_login'),
url(r'^openid/complete/$', complete, name='socialauth_openid_complete'),
url(r'^openid/signout/$', signout, name='openid_signout'),
url(r'^openid/done/$', 'openid_done', name='openid_openid_done'),
)
#Other views.
urlpatterns += patterns('socialauth.views',
url(r'^$', 'signin_complete', name='socialauth_signin_complete'),
url(r'^edit/profile/$', 'editprofile', name='socialauth_editprofile'),
url(r'^logout/$', 'social_logout', name='socialauth_social_logout'),
url(r'consolidate/google/confirm/$', 'consolidate_google_confirm', name='socialauth_consolidate_google_confirm'),
url(r'consolidate/google/confirm/complete/$', 'consolidate_google_confirm_complete', name='socialauth_consolidate_google_confirm_complete'),
url(r'consolidate/google/skip/$', 'consolidate_google_skip', name='socialauth_consolidate_google_skip'),
url(r'consolidate/google/complete/$', 'consolidate_google_complete', name='socialauth_consolidate_google_complete'),
url(r'consolidate/google/failed/$', 'consolidate_google_failed', name='socialauth_consolidate_google_failed'),
url(r'consolidate/google/$', 'consolidate_google', name='socialauth_consolidate_google'),
)