bmedia-casserver 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +325 -0
- data/Gemfile +3 -0
- data/LICENSE +26 -0
- data/README.md +19 -0
- data/Rakefile +2 -0
- data/bin/rubycas-server +30 -0
- data/config/config.example.yml +592 -0
- data/config/unicorn.rb +88 -0
- data/config.ru +17 -0
- data/db/migrate/001_create_initial_structure.rb +47 -0
- data/lib/casserver/authenticators/active_directory_ldap.rb +19 -0
- data/lib/casserver/authenticators/active_resource.rb +127 -0
- data/lib/casserver/authenticators/authlogic_crypto_providers/aes256.rb +43 -0
- data/lib/casserver/authenticators/authlogic_crypto_providers/bcrypt.rb +92 -0
- data/lib/casserver/authenticators/authlogic_crypto_providers/md5.rb +34 -0
- data/lib/casserver/authenticators/authlogic_crypto_providers/sha1.rb +59 -0
- data/lib/casserver/authenticators/authlogic_crypto_providers/sha512.rb +50 -0
- data/lib/casserver/authenticators/base.rb +67 -0
- data/lib/casserver/authenticators/client_certificate.rb +47 -0
- data/lib/casserver/authenticators/google.rb +58 -0
- data/lib/casserver/authenticators/ldap.rb +147 -0
- data/lib/casserver/authenticators/ntlm.rb +88 -0
- data/lib/casserver/authenticators/open_id.rb +22 -0
- data/lib/casserver/authenticators/sql.rb +133 -0
- data/lib/casserver/authenticators/sql_authlogic.rb +93 -0
- data/lib/casserver/authenticators/sql_encrypted.rb +75 -0
- data/lib/casserver/authenticators/sql_md5.rb +19 -0
- data/lib/casserver/authenticators/sql_rest_auth.rb +82 -0
- data/lib/casserver/authenticators/test.rb +22 -0
- data/lib/casserver/cas.rb +323 -0
- data/lib/casserver/localization.rb +13 -0
- data/lib/casserver/model.rb +270 -0
- data/lib/casserver/server.rb +758 -0
- data/lib/casserver/utils.rb +32 -0
- data/lib/casserver/views/_login_form.erb +42 -0
- data/lib/casserver/views/layout.erb +18 -0
- data/lib/casserver/views/login.erb +30 -0
- data/lib/casserver/views/proxy.builder +12 -0
- data/lib/casserver/views/proxy_validate.builder +25 -0
- data/lib/casserver/views/service_validate.builder +18 -0
- data/lib/casserver/views/validate.erb +2 -0
- data/lib/casserver.rb +11 -0
- data/locales/de.yml +27 -0
- data/locales/en.yml +26 -0
- data/locales/es.yml +26 -0
- data/locales/es_ar.yml +26 -0
- data/locales/fr.yml +26 -0
- data/locales/jp.yml +26 -0
- data/locales/pl.yml +26 -0
- data/locales/pt.yml +26 -0
- data/locales/ru.yml +26 -0
- data/locales/zh.yml +26 -0
- data/locales/zh_tw.yml +26 -0
- data/public/themes/cas.css +126 -0
- data/public/themes/notice.png +0 -0
- data/public/themes/ok.png +0 -0
- data/public/themes/simple/bg.png +0 -0
- data/public/themes/simple/favicon.png +0 -0
- data/public/themes/simple/login_box_bg.png +0 -0
- data/public/themes/simple/logo.png +0 -0
- data/public/themes/simple/theme.css +28 -0
- data/public/themes/urbacon/bg.png +0 -0
- data/public/themes/urbacon/login_box_bg.png +0 -0
- data/public/themes/urbacon/logo.png +0 -0
- data/public/themes/urbacon/theme.css +33 -0
- data/public/themes/warning.png +0 -0
- data/resources/init.d.sh +58 -0
- data/setup.rb +1585 -0
- data/spec/alt_config.yml +50 -0
- data/spec/authenticators/active_resource_spec.rb +109 -0
- data/spec/authenticators/ldap_spec.rb +53 -0
- data/spec/casserver_spec.rb +156 -0
- data/spec/default_config.yml +50 -0
- data/spec/model_spec.rb +42 -0
- data/spec/spec.opts +4 -0
- data/spec/spec_helper.rb +89 -0
- data/spec/utils_spec.rb +53 -0
- data/tasks/bundler.rake +4 -0
- data/tasks/db/migrate.rake +12 -0
- data/tasks/spec.rake +10 -0
- 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
|
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
|
data/resources/init.d.sh
ADDED
@@ -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
|