Hide keyboard shortcuts

Hot-keys on this page

r m x p   toggle line displays

j k   next/prev highlighted chunk

0   (zero) top of page

1   (one) first highlighted chunk

1# -*- coding: utf-8 -*- 

2# This program is distributed in the hope that it will be useful, but WITHOUT 

3# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 

4# FOR A PARTICULAR PURPOSE. See the GNU General Public License version 3 for 

5# more details. 

6# 

7# You should have received a copy of the GNU General Public License version 3 

8# along with this program; if not, write to the Free Software Foundation, Inc., 51 

9# Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 

10# 

11# (c) 2015-2016 Valentin Samir 

12"""urls for the app""" 

13from django.conf.urls import url 

14from django.views.generic import RedirectView 

15from django.views.decorators.debug import sensitive_post_parameters, sensitive_variables 

16 

17from cas_server import views 

18 

19app_name = "cas_server" 

20 

21urlpatterns = [ 

22 url( 

23 r'^$', 

24 RedirectView.as_view(pattern_name="cas_server:login", permanent=False, query_string=True) 

25 ), 

26 url( 

27 '^login$', 

28 sensitive_post_parameters('password')( 

29 views.LoginView.as_view() 

30 ), 

31 name='login' 

32 ), 

33 url('^logout$', views.LogoutView.as_view(), name='logout'), 

34 url('^validate$', views.Validate.as_view(), name='validate'), 

35 url( 

36 '^serviceValidate$', 

37 views.ValidateService.as_view(allow_proxy_ticket=False), 

38 name='serviceValidate' 

39 ), 

40 url( 

41 '^proxyValidate$', 

42 views.ValidateService.as_view(allow_proxy_ticket=True), 

43 name='proxyValidate' 

44 ), 

45 url('^proxy$', views.Proxy.as_view(), name='proxy'), 

46 url( 

47 '^p3/serviceValidate$', 

48 views.ValidateService.as_view(allow_proxy_ticket=False), 

49 name='p3_serviceValidate' 

50 ), 

51 url( 

52 '^p3/proxyValidate$', 

53 views.ValidateService.as_view(allow_proxy_ticket=True), 

54 name='p3_proxyValidate' 

55 ), 

56 url('^samlValidate$', views.SamlValidate.as_view(), name='samlValidate'), 

57 url( 

58 '^auth$', 

59 sensitive_variables('password', 'secret')( 

60 sensitive_post_parameters('password', 'secret')( 

61 views.Auth.as_view() 

62 ) 

63 ), 

64 name='auth' 

65 ), 

66 url("^federate(?:/(?P<provider>([^/]+)))?$", views.FederateAuth.as_view(), name='federateAuth'), 

67]