bmedia-casserver 1.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (81) hide show
  1. data/CHANGELOG +325 -0
  2. data/Gemfile +3 -0
  3. data/LICENSE +26 -0
  4. data/README.md +19 -0
  5. data/Rakefile +2 -0
  6. data/bin/rubycas-server +30 -0
  7. data/config/config.example.yml +592 -0
  8. data/config/unicorn.rb +88 -0
  9. data/config.ru +17 -0
  10. data/db/migrate/001_create_initial_structure.rb +47 -0
  11. data/lib/casserver/authenticators/active_directory_ldap.rb +19 -0
  12. data/lib/casserver/authenticators/active_resource.rb +127 -0
  13. data/lib/casserver/authenticators/authlogic_crypto_providers/aes256.rb +43 -0
  14. data/lib/casserver/authenticators/authlogic_crypto_providers/bcrypt.rb +92 -0
  15. data/lib/casserver/authenticators/authlogic_crypto_providers/md5.rb +34 -0
  16. data/lib/casserver/authenticators/authlogic_crypto_providers/sha1.rb +59 -0
  17. data/lib/casserver/authenticators/authlogic_crypto_providers/sha512.rb +50 -0
  18. data/lib/casserver/authenticators/base.rb +67 -0
  19. data/lib/casserver/authenticators/client_certificate.rb +47 -0
  20. data/lib/casserver/authenticators/google.rb +58 -0
  21. data/lib/casserver/authenticators/ldap.rb +147 -0
  22. data/lib/casserver/authenticators/ntlm.rb +88 -0
  23. data/lib/casserver/authenticators/open_id.rb +22 -0
  24. data/lib/casserver/authenticators/sql.rb +133 -0
  25. data/lib/casserver/authenticators/sql_authlogic.rb +93 -0
  26. data/lib/casserver/authenticators/sql_encrypted.rb +75 -0
  27. data/lib/casserver/authenticators/sql_md5.rb +19 -0
  28. data/lib/casserver/authenticators/sql_rest_auth.rb +82 -0
  29. data/lib/casserver/authenticators/test.rb +22 -0
  30. data/lib/casserver/cas.rb +323 -0
  31. data/lib/casserver/localization.rb +13 -0
  32. data/lib/casserver/model.rb +270 -0
  33. data/lib/casserver/server.rb +758 -0
  34. data/lib/casserver/utils.rb +32 -0
  35. data/lib/casserver/views/_login_form.erb +42 -0
  36. data/lib/casserver/views/layout.erb +18 -0
  37. data/lib/casserver/views/login.erb +30 -0
  38. data/lib/casserver/views/proxy.builder +12 -0
  39. data/lib/casserver/views/proxy_validate.builder +25 -0
  40. data/lib/casserver/views/service_validate.builder +18 -0
  41. data/lib/casserver/views/validate.erb +2 -0
  42. data/lib/casserver.rb +11 -0
  43. data/locales/de.yml +27 -0
  44. data/locales/en.yml +26 -0
  45. data/locales/es.yml +26 -0
  46. data/locales/es_ar.yml +26 -0
  47. data/locales/fr.yml +26 -0
  48. data/locales/jp.yml +26 -0
  49. data/locales/pl.yml +26 -0
  50. data/locales/pt.yml +26 -0
  51. data/locales/ru.yml +26 -0
  52. data/locales/zh.yml +26 -0
  53. data/locales/zh_tw.yml +26 -0
  54. data/public/themes/cas.css +126 -0
  55. data/public/themes/notice.png +0 -0
  56. data/public/themes/ok.png +0 -0
  57. data/public/themes/simple/bg.png +0 -0
  58. data/public/themes/simple/favicon.png +0 -0
  59. data/public/themes/simple/login_box_bg.png +0 -0
  60. data/public/themes/simple/logo.png +0 -0
  61. data/public/themes/simple/theme.css +28 -0
  62. data/public/themes/urbacon/bg.png +0 -0
  63. data/public/themes/urbacon/login_box_bg.png +0 -0
  64. data/public/themes/urbacon/logo.png +0 -0
  65. data/public/themes/urbacon/theme.css +33 -0
  66. data/public/themes/warning.png +0 -0
  67. data/resources/init.d.sh +58 -0
  68. data/setup.rb +1585 -0
  69. data/spec/alt_config.yml +50 -0
  70. data/spec/authenticators/active_resource_spec.rb +109 -0
  71. data/spec/authenticators/ldap_spec.rb +53 -0
  72. data/spec/casserver_spec.rb +156 -0
  73. data/spec/default_config.yml +50 -0
  74. data/spec/model_spec.rb +42 -0
  75. data/spec/spec.opts +4 -0
  76. data/spec/spec_helper.rb +89 -0
  77. data/spec/utils_spec.rb +53 -0
  78. data/tasks/bundler.rake +4 -0
  79. data/tasks/db/migrate.rake +12 -0
  80. data/tasks/spec.rake +10 -0
  81. metadata +308 -0
@@ -0,0 +1,28 @@
1
+ body {
2
+ background-image: url(bg.png);
3
+ }
4
+
5
+ #headline-container {
6
+ margin-bottom: 5px;
7
+ }
8
+
9
+ #login-box {
10
+ margin: 0 auto;
11
+ width: 450px;
12
+ top: 110px;
13
+ position: relative;
14
+ }
15
+
16
+ #login-form {
17
+ background-color: #fff;
18
+ border: 1px #aaa solid;
19
+ }
20
+
21
+ #logo-container {
22
+ vertical-align: middle;
23
+ }
24
+
25
+ #logo {
26
+ width: 128px;
27
+ height: 128px;
28
+ }
Binary file
Binary file
@@ -0,0 +1,33 @@
1
+ body {
2
+ background-image: url(bg.png);
3
+ }
4
+
5
+ label {
6
+ color: #5c6156;
7
+ }
8
+
9
+ #login-form {
10
+ background-repeat: no-repeat;
11
+ background-image: url(login_box_bg.png);
12
+ height: 175px;
13
+ width: 210px;
14
+ padding: 20px;
15
+ }
16
+
17
+ #logo-container {
18
+ vertical-align: top;
19
+ }
20
+
21
+ #logo {
22
+ width: 115px;
23
+ height: 171px;
24
+ }
25
+
26
+ #infoline {
27
+ color: #5c6156;
28
+ font-size: 8px;
29
+ }
30
+
31
+ #headline-container {
32
+ margin-right: 15px;
33
+ }
Binary file
@@ -0,0 +1,58 @@
1
+ #! /bin/sh
2
+ #
3
+ # Copyright (c) 2008 Urbacon Ltd.
4
+ #
5
+ # System startup script for the RubyCAS-Server
6
+ #
7
+ # Instructions:
8
+ # 1. Rename this file to 'rubycas-server'
9
+ # 2. Copy it to your '/etc/init.d' directory
10
+ # 3. chmod +x /etc/init.d/rubycas-server
11
+ #
12
+ # chkconfig - 85 15
13
+ # description: Provides single-sign-on authentication for web applications.
14
+ #
15
+ ### BEGIN INIT INFO
16
+ # Provides: rubycas-server
17
+ # Required-Start: $syslog
18
+ # Should-Start:
19
+ # Required-Stop: $syslog
20
+ # Should-Stop:
21
+ # Default-Start: 3 5
22
+ # Default-Stop: 0 1 2 6
23
+ # Description: Start the RubyCAS-Server
24
+ ### END INIT INFO
25
+
26
+ CASSERVER_CTL=rubycas-server-ctl
27
+
28
+ # Gracefully exit if the controller is missing.
29
+ which $CASSERVER_CTL > /dev/null || exit 0
30
+
31
+ # Source config
32
+ . /etc/rc.status
33
+
34
+ rc_reset
35
+ case "$1" in
36
+ start)
37
+ $CASSERVER_CTL start
38
+ rc_status -v
39
+ ;;
40
+ stop)
41
+ $CASSERVER_CTL stop
42
+ rc_status -v
43
+ ;;
44
+ restart)
45
+ $0 stop
46
+ $0 start
47
+ rc_status
48
+ ;;
49
+ status)
50
+ $CASSERVER_CTL status
51
+ rc_status -v
52
+ ;;
53
+ *)
54
+ echo "Usage: $0 {start|stop|status|restart}"
55
+ exit 1
56
+ ;;
57
+ esac
58
+ rc_exit