synapse-rubycas-server 1.1.3.pre → 1.1.4.pre
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +21 -4
- data/Rakefile +2 -1
- data/bin/cap +16 -0
- data/bin/capify +16 -0
- data/bin/foreman +16 -0
- data/bin/lessc +16 -0
- data/bin/rackup +16 -0
- data/bin/rake2thor +16 -0
- data/bin/rubycas-server +12 -26
- data/bin/therubyracer +16 -0
- data/bin/thor +16 -0
- data/bin/tilt +16 -0
- data/bin/unicorn +16 -0
- data/bin/unicorn_rails +16 -0
- data/config.ru +2 -1
- data/config/deploy.rb +36 -0
- data/config/deploy/production.rb +4 -0
- data/config/deploy/staging.rb +4 -0
- data/config/recipes/base.rb +8 -0
- data/config/recipes/git.rb +10 -0
- data/config/recipes/nginx.rb +28 -0
- data/config/recipes/puma.rb +38 -0
- data/config/recipes/rubycas.rb +11 -0
- data/config/recipes/templates/nginx.erb +43 -0
- data/config/recipes/templates/puma.erb +13 -0
- data/config/recipes/templates/rubycas.erb +114 -0
- data/config/unicorn/development.rb +14 -0
- data/config/unicorn/production.rb +14 -0
- data/config/unicorn/staging.rb +14 -0
- data/lib/casserver.rb +2 -1
- data/lib/casserver/cas.rb +330 -4
- data/lib/casserver/core_ext/directory_user.rb +3 -2
- data/lib/casserver/server.rb +4 -8
- data/lib/casserver/views/_login_form.erb +15 -36
- data/lib/casserver/views/layout.erb +40 -4
- data/lib/casserver/views/login.erb +13 -27
- data/locales/en.yml +17 -3
- data/public/app.css +9641 -0
- data/public/assets/fontawesome-webfont.eot +0 -0
- data/public/assets/fontawesome-webfont.svg +255 -0
- data/public/assets/fontawesome-webfont.ttf +0 -0
- data/public/assets/fontawesome-webfont.woff +0 -0
- data/public/assets/gothamhtf-black-webfont.eot +0 -0
- data/public/assets/gothamhtf-black-webfont.svg +241 -0
- data/public/assets/gothamhtf-black-webfont.ttf +0 -0
- data/public/assets/gothamhtf-black-webfont.woff +0 -0
- data/public/assets/gothamhtf-blackitalic-webfont.eot +0 -0
- data/public/assets/gothamhtf-blackitalic-webfont.svg +241 -0
- data/public/assets/gothamhtf-blackitalic-webfont.ttf +0 -0
- data/public/assets/gothamhtf-blackitalic-webfont.woff +0 -0
- data/public/assets/gothamhtf-bold-webfont.eot +0 -0
- data/public/assets/gothamhtf-bold-webfont.svg +241 -0
- data/public/assets/gothamhtf-bold-webfont.ttf +0 -0
- data/public/assets/gothamhtf-bold-webfont.woff +0 -0
- data/public/assets/gothamhtf-bolditalic-webfont.eot +0 -0
- data/public/assets/gothamhtf-bolditalic-webfont.svg +241 -0
- data/public/assets/gothamhtf-bolditalic-webfont.ttf +0 -0
- data/public/assets/gothamhtf-bolditalic-webfont.woff +0 -0
- data/public/assets/gothamhtf-book-webfont.eot +0 -0
- data/public/assets/gothamhtf-book-webfont.svg +241 -0
- data/public/assets/gothamhtf-book-webfont.ttf +0 -0
- data/public/assets/gothamhtf-book-webfont.woff +0 -0
- data/public/assets/gothamhtf-bookitalic-webfont.eot +0 -0
- data/public/assets/gothamhtf-bookitalic-webfont.svg +241 -0
- data/public/assets/gothamhtf-bookitalic-webfont.ttf +0 -0
- data/public/assets/gothamhtf-bookitalic-webfont.woff +0 -0
- data/public/assets/gothamhtf-light-webfont.eot +0 -0
- data/public/assets/gothamhtf-light-webfont.svg +241 -0
- data/public/assets/gothamhtf-light-webfont.ttf +0 -0
- data/public/assets/gothamhtf-light-webfont.woff +0 -0
- data/public/assets/gothamhtf-lightitalic-webfont.eot +0 -0
- data/public/assets/gothamhtf-lightitalic-webfont.svg +241 -0
- data/public/assets/gothamhtf-lightitalic-webfont.ttf +0 -0
- data/public/assets/gothamhtf-lightitalic-webfont.woff +0 -0
- data/public/assets/gothamhtf-medium-webfont.eot +0 -0
- data/public/assets/gothamhtf-medium-webfont.svg +241 -0
- data/public/assets/gothamhtf-medium-webfont.ttf +0 -0
- data/public/assets/gothamhtf-medium-webfont.woff +0 -0
- data/public/assets/gothamhtf-thin-webfont.eot +0 -0
- data/public/assets/gothamhtf-thin-webfont.svg +241 -0
- data/public/assets/gothamhtf-thin-webfont.ttf +0 -0
- data/public/assets/gothamhtf-thin-webfont.woff +0 -0
- data/public/assets/gothamhtf-thinitalic-webfont.eot +0 -0
- data/public/assets/gothamhtf-thinitalic-webfont.svg +241 -0
- data/public/assets/gothamhtf-thinitalic-webfont.ttf +0 -0
- data/public/assets/gothamhtf-thinitalic-webfont.woff +0 -0
- data/public/assets/gothamhtf-ultra-webfont.eot +0 -0
- data/public/assets/gothamhtf-ultra-webfont.svg +241 -0
- data/public/assets/gothamhtf-ultra-webfont.ttf +0 -0
- data/public/assets/gothamhtf-ultra-webfont.woff +0 -0
- data/public/assets/gothamhtf-ultraitalic-webfont.eot +0 -0
- data/public/assets/gothamhtf-ultraitalic-webfont.svg +241 -0
- data/public/assets/gothamhtf-ultraitalic-webfont.ttf +0 -0
- data/public/assets/gothamhtf-ultraitalic-webfont.woff +0 -0
- data/public/assets/gothamhtf-xlight-webfont.eot +0 -0
- data/public/assets/gothamhtf-xlight-webfont.svg +241 -0
- data/public/assets/gothamhtf-xlight-webfont.ttf +0 -0
- data/public/assets/gothamhtf-xlight-webfont.woff +0 -0
- data/public/assets/gothamhtf-xlightitalic-webfont.eot +0 -0
- data/public/assets/gothamhtf-xlightitalic-webfont.svg +241 -0
- data/public/assets/gothamhtf-xlightitalic-webfont.ttf +0 -0
- data/public/assets/gothamhtf-xlightitalic-webfont.woff +0 -0
- data/public/css/app.css +190 -0
- data/public/css/bootstrap-responsive.min.css +9 -0
- data/public/css/bootstrap.min.css +9 -0
- data/public/img/glyphicons-halflings-white.png +0 -0
- data/public/img/glyphicons-halflings.png +0 -0
- data/public/js/app.js +0 -0
- data/public/js/bootstrap.min.js +6 -0
- data/public/js/jquery-1.8.0.js +9227 -0
- data/public/themes/app.css +4652 -0
- data/public/themes/cas.css +2 -0
- data/rubycas-server.gemspec +2 -2
- data/spec/casserver_spec.rb +1 -1
- data/spec/config/default_config.yml +1 -1
- metadata +141 -8
- checksums.yaml +0 -15
- data/config/unicorn.rb +0 -88
- data/public/themes/simple/theme.css +0 -28
checksums.yaml
DELETED
@@ -1,15 +0,0 @@
|
|
1
|
-
---
|
2
|
-
!binary "U0hBMQ==":
|
3
|
-
metadata.gz: !binary |-
|
4
|
-
MWQ2MDlhNWNlNDhlYWY3MzJlNWFjNjBkNjRiNjBjMzJmMzQyM2Y3ZA==
|
5
|
-
data.tar.gz: !binary |-
|
6
|
-
ZjJlZGYwZTdmNzVlNmIxYzYzNjY4ZDJmYWUxNWQ0NTQzNWQwMGZkNA==
|
7
|
-
!binary "U0hBNTEy":
|
8
|
-
metadata.gz: !binary |-
|
9
|
-
MzAxN2U0OTAxYzA2YjQzZGUwMzQzOTUwOWU0NjhmMzk1MWJkZjQxMjA3ZDUz
|
10
|
-
NDMzMTQyZTI4OWNkYjI2NTA1OWI5ZDI0NTZlOTlkOWQ0ZWU1MDljNDBkZGZj
|
11
|
-
ZDMwNzdlZTg1NDQ4MzkzNTZkODI1ZGE5M2RiMmIxYzlkNDkzZjA=
|
12
|
-
data.tar.gz: !binary |-
|
13
|
-
NjU4MjYyNmJmODQ4YjdhY2Y5MzRmMjI3ZTQ5Mzc1YmE4ZDZlZDFhOGQ3ZGVh
|
14
|
-
MjEzMTdlYzM0OWVjYTZiOTM4YmFkNmRjNWU0ZGEzMjU0ZDI1OGU0ZjI2OWQx
|
15
|
-
NzQ5ZGVkZDI5ZGQ1YjNkNjc5NGMxODE0M2E2MzdlMjlkMjk0Yjc=
|
data/config/unicorn.rb
DELETED
@@ -1,88 +0,0 @@
|
|
1
|
-
# Sample configuration file for Unicorn (not Rack)
|
2
|
-
#
|
3
|
-
# See http://unicorn.bogomips.org/Unicorn/Configurator.html for complete
|
4
|
-
# documentation.
|
5
|
-
SINATRA_ROOT = `pwd`.strip
|
6
|
-
|
7
|
-
# Use at least one worker per core if you're on a dedicated server,
|
8
|
-
# more will usually help for _short_ waits on databases/caches.
|
9
|
-
worker_processes 3
|
10
|
-
|
11
|
-
# Help ensure your application will always spawn in the symlinked
|
12
|
-
# "current" directory that Capistrano sets up.
|
13
|
-
working_directory SINATRA_ROOT # available in 0.94.0+
|
14
|
-
|
15
|
-
# listen on both a Unix domain socket and a TCP port,
|
16
|
-
# we use a shorter backlog for quicker failover when busy
|
17
|
-
# listen "/tmp/.sock", :backlog => 64
|
18
|
-
listen 18889, :tcp_nopush => true
|
19
|
-
|
20
|
-
# nuke workers after 30 seconds instead of 60 seconds (the default)
|
21
|
-
timeout 30
|
22
|
-
|
23
|
-
# feel free to point this anywhere accessible on the filesystem
|
24
|
-
|
25
|
-
pid "#{SINATRA_ROOT}/tmp/pids/unicorn.pid"
|
26
|
-
|
27
|
-
# relative_path "/test_platform"
|
28
|
-
# some applications/frameworks log to stderr or stdout, so prevent
|
29
|
-
# them from going to /dev/null when daemonized here:
|
30
|
-
stderr_path "#{SINATRA_ROOT}/log/unicorn.stderr.log"
|
31
|
-
stdout_path "#{SINATRA_ROOT}/log/unicorn.stdout.log"
|
32
|
-
|
33
|
-
# combine REE with "preload_app true" for memory savings
|
34
|
-
# http://rubyenterpriseedition.com/faq.html#adapt_apps_for_cow
|
35
|
-
preload_app false
|
36
|
-
GC.respond_to?(:copy_on_write_friendly=) and
|
37
|
-
GC.copy_on_write_friendly = true
|
38
|
-
|
39
|
-
before_fork do |server, worker|
|
40
|
-
# the following is highly recomended for Rails + "preload_app true"
|
41
|
-
# as there's no need for the master process to hold a connection
|
42
|
-
# defined?(ActiveRecord::Base) and
|
43
|
-
# ActiveRecord::Base.connection.disconnect!
|
44
|
-
|
45
|
-
# The following is only recommended for memory/DB-constrained
|
46
|
-
# installations. It is not needed if your system can house
|
47
|
-
# twice as many worker_processes as you have configured.
|
48
|
-
#
|
49
|
-
# # This allows a new master process to incrementally
|
50
|
-
# # phase out the old master process with SIGTTOU to avoid a
|
51
|
-
# # thundering herd (especially in the "preload_app false" case)
|
52
|
-
# # when doing a transparent upgrade. The last worker spawned
|
53
|
-
# # will then kill off the old master process with a SIGQUIT.
|
54
|
-
old_pid = "#{server.config[:pid]}.oldbin"
|
55
|
-
|
56
|
-
puts 'pid:'
|
57
|
-
puts '-------------------'
|
58
|
-
puts server.pid
|
59
|
-
puts old_pid
|
60
|
-
puts '---------------------'
|
61
|
-
|
62
|
-
if old_pid != server.pid
|
63
|
-
begin
|
64
|
-
sig = (worker.nr + 1) >= server.worker_processes ? :QUIT : :TTOU
|
65
|
-
Process.kill(sig, File.read(old_pid).to_i)
|
66
|
-
rescue Errno::ENOENT, Errno::ESRCH
|
67
|
-
end
|
68
|
-
end
|
69
|
-
#
|
70
|
-
# # *optionally* throttle the master from forking too quickly by sleeping
|
71
|
-
sleep 1
|
72
|
-
end
|
73
|
-
|
74
|
-
after_fork do |server, worker|
|
75
|
-
# per-process listener ports for debugging/admin/migrations
|
76
|
-
# addr = "127.0.0.1:#{9293 + worker.nr}"
|
77
|
-
# server.listen(addr, :tries => -1, :delay => 5, :tcp_nopush => true)
|
78
|
-
|
79
|
-
# the following is *required* for Rails + "preload_app true",
|
80
|
-
# defined?(ActiveRecord::Base) and
|
81
|
-
# ActiveRecord::Base.establish_connection
|
82
|
-
|
83
|
-
# if preload_app is true, then you may also want to check and
|
84
|
-
# restart any other shared sockets/descriptors such as Memcached,
|
85
|
-
# and Redis. TokyoCabinet file handles are safe to reuse
|
86
|
-
# between any number of forked children (assuming your kernel
|
87
|
-
# correctly implements pread()/pwrite() system calls)
|
88
|
-
end
|
@@ -1,28 +0,0 @@
|
|
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
|
-
}
|