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

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

40

41

42

43

44

45

46

47

48

49

50

51

52

53

54

55

56

57

58

59

60

61

62

63

64

65

66

67

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

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

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

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

# more details. 

# 

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

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

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

# 

# (c) 2015-2016 Valentin Samir 

"""urls for the app""" 

from django.conf.urls import url 

from django.views.generic import RedirectView 

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

 

from cas_server import views 

 

app_name = "cas_server" 

 

urlpatterns = [ 

url( 

r'^$', 

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

), 

url( 

'^login$', 

sensitive_post_parameters('password')( 

views.LoginView.as_view() 

), 

name='login' 

), 

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

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

url( 

'^serviceValidate$', 

views.ValidateService.as_view(allow_proxy_ticket=False), 

name='serviceValidate' 

), 

url( 

'^proxyValidate$', 

views.ValidateService.as_view(allow_proxy_ticket=True), 

name='proxyValidate' 

), 

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

url( 

'^p3/serviceValidate$', 

views.ValidateService.as_view(allow_proxy_ticket=False), 

name='p3_serviceValidate' 

), 

url( 

'^p3/proxyValidate$', 

views.ValidateService.as_view(allow_proxy_ticket=True), 

name='p3_proxyValidate' 

), 

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

url( 

'^auth$', 

sensitive_variables('password', 'secret')( 

sensitive_post_parameters('password', 'secret')( 

views.Auth.as_view() 

) 

), 

name='auth' 

), 

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

]