synapse-rubycas-server 1.1.4.pre → 1.1.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (118) hide show
  1. checksums.yaml +15 -0
  2. data/Gemfile +2 -21
  3. data/Rakefile +0 -6
  4. data/bin/rubycas-server +26 -12
  5. data/config.ru +1 -2
  6. data/config/unicorn.rb +88 -0
  7. data/lib/casserver.rb +1 -2
  8. data/lib/casserver/cas.rb +4 -330
  9. data/lib/casserver/server.rb +8 -4
  10. data/lib/casserver/views/_login_form.erb +36 -15
  11. data/lib/casserver/views/layout.erb +4 -40
  12. data/lib/casserver/views/login.erb +27 -13
  13. data/locales/en.yml +3 -17
  14. data/public/themes/cas.css +0 -2
  15. data/public/themes/simple/theme.css +28 -0
  16. data/spec/casserver_spec.rb +1 -1
  17. data/spec/config/default_config.yml +1 -1
  18. metadata +12 -146
  19. data/bin/cap +0 -16
  20. data/bin/capify +0 -16
  21. data/bin/foreman +0 -16
  22. data/bin/lessc +0 -16
  23. data/bin/rackup +0 -16
  24. data/bin/rake2thor +0 -16
  25. data/bin/therubyracer +0 -16
  26. data/bin/thor +0 -16
  27. data/bin/tilt +0 -16
  28. data/bin/unicorn +0 -16
  29. data/bin/unicorn_rails +0 -16
  30. data/config/deploy.rb +0 -36
  31. data/config/deploy/production.rb +0 -4
  32. data/config/deploy/staging.rb +0 -4
  33. data/config/recipes/base.rb +0 -8
  34. data/config/recipes/git.rb +0 -10
  35. data/config/recipes/nginx.rb +0 -28
  36. data/config/recipes/puma.rb +0 -38
  37. data/config/recipes/rubycas.rb +0 -11
  38. data/config/recipes/templates/nginx.erb +0 -43
  39. data/config/recipes/templates/puma.erb +0 -13
  40. data/config/recipes/templates/rubycas.erb +0 -114
  41. data/config/unicorn/development.rb +0 -14
  42. data/config/unicorn/production.rb +0 -14
  43. data/config/unicorn/staging.rb +0 -14
  44. data/public/app.css +0 -9641
  45. data/public/assets/fontawesome-webfont.eot +0 -0
  46. data/public/assets/fontawesome-webfont.svg +0 -255
  47. data/public/assets/fontawesome-webfont.ttf +0 -0
  48. data/public/assets/fontawesome-webfont.woff +0 -0
  49. data/public/assets/gothamhtf-black-webfont.eot +0 -0
  50. data/public/assets/gothamhtf-black-webfont.svg +0 -241
  51. data/public/assets/gothamhtf-black-webfont.ttf +0 -0
  52. data/public/assets/gothamhtf-black-webfont.woff +0 -0
  53. data/public/assets/gothamhtf-blackitalic-webfont.eot +0 -0
  54. data/public/assets/gothamhtf-blackitalic-webfont.svg +0 -241
  55. data/public/assets/gothamhtf-blackitalic-webfont.ttf +0 -0
  56. data/public/assets/gothamhtf-blackitalic-webfont.woff +0 -0
  57. data/public/assets/gothamhtf-bold-webfont.eot +0 -0
  58. data/public/assets/gothamhtf-bold-webfont.svg +0 -241
  59. data/public/assets/gothamhtf-bold-webfont.ttf +0 -0
  60. data/public/assets/gothamhtf-bold-webfont.woff +0 -0
  61. data/public/assets/gothamhtf-bolditalic-webfont.eot +0 -0
  62. data/public/assets/gothamhtf-bolditalic-webfont.svg +0 -241
  63. data/public/assets/gothamhtf-bolditalic-webfont.ttf +0 -0
  64. data/public/assets/gothamhtf-bolditalic-webfont.woff +0 -0
  65. data/public/assets/gothamhtf-book-webfont.eot +0 -0
  66. data/public/assets/gothamhtf-book-webfont.svg +0 -241
  67. data/public/assets/gothamhtf-book-webfont.ttf +0 -0
  68. data/public/assets/gothamhtf-book-webfont.woff +0 -0
  69. data/public/assets/gothamhtf-bookitalic-webfont.eot +0 -0
  70. data/public/assets/gothamhtf-bookitalic-webfont.svg +0 -241
  71. data/public/assets/gothamhtf-bookitalic-webfont.ttf +0 -0
  72. data/public/assets/gothamhtf-bookitalic-webfont.woff +0 -0
  73. data/public/assets/gothamhtf-light-webfont.eot +0 -0
  74. data/public/assets/gothamhtf-light-webfont.svg +0 -241
  75. data/public/assets/gothamhtf-light-webfont.ttf +0 -0
  76. data/public/assets/gothamhtf-light-webfont.woff +0 -0
  77. data/public/assets/gothamhtf-lightitalic-webfont.eot +0 -0
  78. data/public/assets/gothamhtf-lightitalic-webfont.svg +0 -241
  79. data/public/assets/gothamhtf-lightitalic-webfont.ttf +0 -0
  80. data/public/assets/gothamhtf-lightitalic-webfont.woff +0 -0
  81. data/public/assets/gothamhtf-medium-webfont.eot +0 -0
  82. data/public/assets/gothamhtf-medium-webfont.svg +0 -241
  83. data/public/assets/gothamhtf-medium-webfont.ttf +0 -0
  84. data/public/assets/gothamhtf-medium-webfont.woff +0 -0
  85. data/public/assets/gothamhtf-thin-webfont.eot +0 -0
  86. data/public/assets/gothamhtf-thin-webfont.svg +0 -241
  87. data/public/assets/gothamhtf-thin-webfont.ttf +0 -0
  88. data/public/assets/gothamhtf-thin-webfont.woff +0 -0
  89. data/public/assets/gothamhtf-thinitalic-webfont.eot +0 -0
  90. data/public/assets/gothamhtf-thinitalic-webfont.svg +0 -241
  91. data/public/assets/gothamhtf-thinitalic-webfont.ttf +0 -0
  92. data/public/assets/gothamhtf-thinitalic-webfont.woff +0 -0
  93. data/public/assets/gothamhtf-ultra-webfont.eot +0 -0
  94. data/public/assets/gothamhtf-ultra-webfont.svg +0 -241
  95. data/public/assets/gothamhtf-ultra-webfont.ttf +0 -0
  96. data/public/assets/gothamhtf-ultra-webfont.woff +0 -0
  97. data/public/assets/gothamhtf-ultraitalic-webfont.eot +0 -0
  98. data/public/assets/gothamhtf-ultraitalic-webfont.svg +0 -241
  99. data/public/assets/gothamhtf-ultraitalic-webfont.ttf +0 -0
  100. data/public/assets/gothamhtf-ultraitalic-webfont.woff +0 -0
  101. data/public/assets/gothamhtf-xlight-webfont.eot +0 -0
  102. data/public/assets/gothamhtf-xlight-webfont.svg +0 -241
  103. data/public/assets/gothamhtf-xlight-webfont.ttf +0 -0
  104. data/public/assets/gothamhtf-xlight-webfont.woff +0 -0
  105. data/public/assets/gothamhtf-xlightitalic-webfont.eot +0 -0
  106. data/public/assets/gothamhtf-xlightitalic-webfont.svg +0 -241
  107. data/public/assets/gothamhtf-xlightitalic-webfont.ttf +0 -0
  108. data/public/assets/gothamhtf-xlightitalic-webfont.woff +0 -0
  109. data/public/css/app.css +0 -190
  110. data/public/css/bootstrap-responsive.min.css +0 -9
  111. data/public/css/bootstrap.min.css +0 -9
  112. data/public/img/glyphicons-halflings-white.png +0 -0
  113. data/public/img/glyphicons-halflings.png +0 -0
  114. data/public/js/app.js +0 -0
  115. data/public/js/bootstrap.min.js +0 -6
  116. data/public/js/jquery-1.8.0.js +0 -9227
  117. data/public/themes/app.css +0 -4652
  118. data/rubycas-server.gemspec +0 -62
data/bin/cap DELETED
@@ -1,16 +0,0 @@
1
- #!/usr/bin/env ruby-local-exec
2
- #
3
- # This file was generated by Bundler.
4
- #
5
- # The application 'cap' is installed as part of a gem, and
6
- # this file is here to facilitate running it.
7
- #
8
-
9
- require 'pathname'
10
- ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
11
- Pathname.new(__FILE__).realpath)
12
-
13
- require 'rubygems'
14
- require 'bundler/setup'
15
-
16
- load Gem.bin_path('capistrano', 'cap')
data/bin/capify DELETED
@@ -1,16 +0,0 @@
1
- #!/usr/bin/env ruby-local-exec
2
- #
3
- # This file was generated by Bundler.
4
- #
5
- # The application 'capify' is installed as part of a gem, and
6
- # this file is here to facilitate running it.
7
- #
8
-
9
- require 'pathname'
10
- ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
11
- Pathname.new(__FILE__).realpath)
12
-
13
- require 'rubygems'
14
- require 'bundler/setup'
15
-
16
- load Gem.bin_path('capistrano', 'capify')
data/bin/foreman DELETED
@@ -1,16 +0,0 @@
1
- #!/usr/bin/env ruby-local-exec
2
- #
3
- # This file was generated by Bundler.
4
- #
5
- # The application 'foreman' is installed as part of a gem, and
6
- # this file is here to facilitate running it.
7
- #
8
-
9
- require 'pathname'
10
- ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
11
- Pathname.new(__FILE__).realpath)
12
-
13
- require 'rubygems'
14
- require 'bundler/setup'
15
-
16
- load Gem.bin_path('foreman', 'foreman')
data/bin/lessc DELETED
@@ -1,16 +0,0 @@
1
- #!/usr/bin/env ruby-local-exec
2
- #
3
- # This file was generated by Bundler.
4
- #
5
- # The application 'lessc' is installed as part of a gem, and
6
- # this file is here to facilitate running it.
7
- #
8
-
9
- require 'pathname'
10
- ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
11
- Pathname.new(__FILE__).realpath)
12
-
13
- require 'rubygems'
14
- require 'bundler/setup'
15
-
16
- load Gem.bin_path('less', 'lessc')
data/bin/rackup DELETED
@@ -1,16 +0,0 @@
1
- #!/usr/bin/env ruby-local-exec
2
- #
3
- # This file was generated by Bundler.
4
- #
5
- # The application 'rackup' is installed as part of a gem, and
6
- # this file is here to facilitate running it.
7
- #
8
-
9
- require 'pathname'
10
- ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
11
- Pathname.new(__FILE__).realpath)
12
-
13
- require 'rubygems'
14
- require 'bundler/setup'
15
-
16
- load Gem.bin_path('rack', 'rackup')
data/bin/rake2thor DELETED
@@ -1,16 +0,0 @@
1
- #!/usr/bin/env ruby-local-exec
2
- #
3
- # This file was generated by Bundler.
4
- #
5
- # The application 'rake2thor' is installed as part of a gem, and
6
- # this file is here to facilitate running it.
7
- #
8
-
9
- require 'pathname'
10
- ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
11
- Pathname.new(__FILE__).realpath)
12
-
13
- require 'rubygems'
14
- require 'bundler/setup'
15
-
16
- load Gem.bin_path('thor', 'rake2thor')
data/bin/therubyracer DELETED
@@ -1,16 +0,0 @@
1
- #!/usr/bin/env ruby-local-exec
2
- #
3
- # This file was generated by Bundler.
4
- #
5
- # The application 'therubyracer' is installed as part of a gem, and
6
- # this file is here to facilitate running it.
7
- #
8
-
9
- require 'pathname'
10
- ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
11
- Pathname.new(__FILE__).realpath)
12
-
13
- require 'rubygems'
14
- require 'bundler/setup'
15
-
16
- load Gem.bin_path('therubyracer', 'therubyracer')
data/bin/thor DELETED
@@ -1,16 +0,0 @@
1
- #!/usr/bin/env ruby-local-exec
2
- #
3
- # This file was generated by Bundler.
4
- #
5
- # The application 'thor' is installed as part of a gem, and
6
- # this file is here to facilitate running it.
7
- #
8
-
9
- require 'pathname'
10
- ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
11
- Pathname.new(__FILE__).realpath)
12
-
13
- require 'rubygems'
14
- require 'bundler/setup'
15
-
16
- load Gem.bin_path('thor', 'thor')
data/bin/tilt DELETED
@@ -1,16 +0,0 @@
1
- #!/usr/bin/env ruby-local-exec
2
- #
3
- # This file was generated by Bundler.
4
- #
5
- # The application 'tilt' is installed as part of a gem, and
6
- # this file is here to facilitate running it.
7
- #
8
-
9
- require 'pathname'
10
- ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
11
- Pathname.new(__FILE__).realpath)
12
-
13
- require 'rubygems'
14
- require 'bundler/setup'
15
-
16
- load Gem.bin_path('tilt', 'tilt')
data/bin/unicorn DELETED
@@ -1,16 +0,0 @@
1
- #!/usr/bin/env ruby-local-exec
2
- #
3
- # This file was generated by Bundler.
4
- #
5
- # The application 'unicorn' is installed as part of a gem, and
6
- # this file is here to facilitate running it.
7
- #
8
-
9
- require 'pathname'
10
- ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
11
- Pathname.new(__FILE__).realpath)
12
-
13
- require 'rubygems'
14
- require 'bundler/setup'
15
-
16
- load Gem.bin_path('unicorn', 'unicorn')
data/bin/unicorn_rails DELETED
@@ -1,16 +0,0 @@
1
- #!/usr/bin/env ruby-local-exec
2
- #
3
- # This file was generated by Bundler.
4
- #
5
- # The application 'unicorn_rails' is installed as part of a gem, and
6
- # this file is here to facilitate running it.
7
- #
8
-
9
- require 'pathname'
10
- ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
11
- Pathname.new(__FILE__).realpath)
12
-
13
- require 'rubygems'
14
- require 'bundler/setup'
15
-
16
- load Gem.bin_path('unicorn', 'unicorn_rails')
data/config/deploy.rb DELETED
@@ -1,36 +0,0 @@
1
- require "bundler/capistrano"
2
- require "capistrano/ext/multistage"
3
- require 'hipchat/capistrano'
4
-
5
- load "config/recipes/base"
6
- load "config/recipes/nginx"
7
- load "config/recipes/puma"
8
- load "config/recipes/git"
9
- load "config/recipes/rubycas"
10
-
11
- set :user, 'deployer'
12
- set :application, "rubycas"
13
- set :deploy_to, "/home/#{user}/apps/#{application}"
14
- set :deploy_via, :remote_cache
15
- set :use_sudo, false
16
-
17
- set :bundle_flags, "--deployment --quiet --binstubs"
18
- set :bundler, "/home/#{user}/.rbenv/shims/bundle"
19
- set :default_environment, {
20
- 'PATH' => "/home/#{user}/.rbenv/shims:/home/#{user}/.rbenv/bin:#{current_path}/bin:$PATH"
21
- }
22
-
23
- set :repository, "git@gitlab.synapse.com:synapseit/rubycas-server.git"
24
- set :stages, %w(staging production)
25
- set :scm, :git
26
- set :ssh_options, { :forward_agent => true }
27
- default_run_options[:pty] = true
28
-
29
- #hipchat
30
- set :hipchat_token, "513b16064cff1be931093fb28f37c4"
31
- set :hipchat_room_name, "The Hacker Dojo"
32
- set :hipchat_announce, true # notify users?
33
-
34
- #nginx
35
- set :sudo_user, 'root'
36
- set :app_port, "80"
@@ -1,4 +0,0 @@
1
- set :rails_env, "production"
2
- server 'sso1.synapse.com', :app, :web, :db, :primary => true
3
- set :branch, current_git_branch
4
- set :server_name, 'sso1.synapse.com'
@@ -1,4 +0,0 @@
1
- set :rails_env, "production"
2
- server 'sso-dev.synapse.com', :app, :web, :db, :primary => true
3
- set :branch, current_git_branch
4
- set :server_name, 'sso-dev.synapse.com'
@@ -1,8 +0,0 @@
1
- def template(from, to)
2
- erb = File.read(File.expand_path("../templates/#{from}", __FILE__))
3
- put ERB.new(erb).result(binding), to
4
- end
5
-
6
- def set_default(name, *args, &block)
7
- set(name, *args, &block) unless exists?(name)
8
- end
@@ -1,10 +0,0 @@
1
- # Bonus! Colors are pretty!
2
- def red(str)
3
- "\e[31m#{str}\e[0m"
4
- end
5
-
6
- def current_git_branch
7
- branch = `git symbolic-ref HEAD 2> /dev/null`.strip.gsub(/^refs\/heads\//, '')
8
- puts "Deploying branch #{red branch}"
9
- branch
10
- end
@@ -1,28 +0,0 @@
1
- namespace :nginx do
2
- desc "Install latest stable release of nginx"
3
- task :install, roles: :web do
4
- run "#{sudo} add-apt-repository ppa:nginx/stable"
5
- run "#{sudo} apt-get -y update"
6
- run "#{sudo} apt-get -y install nginx"
7
- end
8
- after "deploy:install", "nginx:install"
9
-
10
- desc "Setup nginx configuration for this application"
11
- task :setup, roles: :web do
12
- template "nginx.erb", "/tmp/nginx_conf"
13
- run "#{sudo} mv /tmp/nginx_conf /etc/nginx/sites-enabled/#{application}"
14
- run "#{sudo} rm -f /etc/nginx/sites-enabled/default"
15
- restart
16
- end
17
- after "deploy:setup", "nginx:setup"
18
-
19
- %w[start stop restart].each do |command|
20
- desc "#{command} nginx"
21
- task command, roles: :web do
22
- run "#{sudo} service nginx #{command}"
23
- end
24
- end
25
- end
26
-
27
- # NOTE: I found it necessary to manually fix the init script as shown here
28
- # https://bugs.launchpad.net/nginx/+bug/1033856
@@ -1,38 +0,0 @@
1
- after 'deploy:stop', 'puma:stop'
2
- after 'deploy:start', 'puma:start'
3
- after 'deploy:restart', 'puma:restart'
4
-
5
- _cset(:puma_cmd) { "#{fetch(:bundle_cmd, 'bundle')} exec puma" }
6
- _cset(:pumactl_cmd) { "#{fetch(:bundle_cmd, 'bundle')} exec pumactl" }
7
- _cset(:puma_state) { "#{shared_path}/sockets/#{application}-puma.state" }
8
- _cset(:puma_ctl_sock) { "#{shared_path}/sockets/#{application}-pumactl.sock" }
9
- _cset(:puma_sock) { "#{shared_path}/sockets/#{application}-puma.sock" }
10
- _cset(:puma_pid) { "#{shared_path}/pids/puma.pid" }
11
- _cset(:puma_role) { :app }
12
-
13
- namespace :puma do
14
- desc 'Start puma'
15
- task :start, :roles => lambda { fetch(:puma_role) }, :on_no_matching_servers => :continue do
16
- puma_env = fetch(:rack_env, fetch(:rails_env, 'production'))
17
- run "cd #{current_path} && #{fetch(:puma_cmd)} --config #{shared_path}/config/puma.rb", :pty => false
18
- end
19
-
20
- desc 'Stop puma'
21
- task :stop, :roles => lambda { fetch(:puma_role) }, :on_no_matching_servers => :continue do
22
- run "cd #{current_path} && #{fetch(:pumactl_cmd)} -S #{fetch(:puma_state)} stop"
23
- end
24
-
25
- desc 'Restart puma'
26
- task :restart, :roles => lambda { fetch(:puma_role) }, :on_no_matching_servers => :continue do
27
- run "cd #{current_path} && #{fetch(:pumactl_cmd)} -S #{fetch(:puma_state)} restart"
28
- end
29
-
30
- desc "Install puma configuration"
31
- task :setup, roles: :app do
32
- template "puma.erb", "/tmp/puma_conf"
33
- run "cd #{shared_path} && mkdir config"
34
- run "cd #{shared_path} && mkdir sockets"
35
- run "#{sudo} mv /tmp/puma_conf #{shared_path}/config/puma.rb"
36
- end
37
- after "deploy:setup", "puma:setup"
38
- end
@@ -1,11 +0,0 @@
1
- namespace :rubycas do
2
- desc "Setup nginx configuration for this application"
3
- task :setup, roles: :web do
4
- template "rubycas.erb", "/tmp/rubycas"
5
- run "#{sudo} mv /tmp/rubycas /etc/rubycas-server/config.yml"
6
- end
7
- after "deploy:setup", "rubycas:setup"
8
- end
9
-
10
- # NOTE: I found it necessary to manually fix the init script as shown here
11
- # https://bugs.launchpad.net/nginx/+bug/1033856
@@ -1,43 +0,0 @@
1
- upstream <%= application %> {
2
- server unix:<%= shared_path %>/sockets/<%= application %>-puma.sock fail_timeout=0;
3
- }
4
-
5
- server {
6
- listen 80;
7
- server_name <%= server_name %>;
8
- rewrite ^ https://$server_name$request_uri? permanent;
9
- }
10
-
11
- server {
12
- listen 443;
13
- server_name <%= server_name %>;
14
- root <%= current_path %>/public;
15
-
16
- ssl on;
17
- ssl_certificate /etc/ssl/cert_wildcard.crt;
18
- ssl_certificate_key /etc/ssl/key_wildcard.key;
19
-
20
- if (-f $document_root/maintenance.html) {
21
- rewrite ^(.*)$ /maintenance.html last;
22
- break;
23
- }
24
-
25
- location / {
26
- try_files $uri $uri/index.html $uri @<%= application %>;
27
- }
28
-
29
-
30
- location @<%= application %> {
31
- proxy_redirect off;
32
- proxy_set_header X-FORWARDED_PROTO https;
33
- proxy_set_header Host $http_host;
34
- proxy_set_header X-Real-IP $remote_addr;
35
- proxy_read_timeout 300;
36
- proxy_connect_timeout 300;
37
- proxy_pass http://<%= application %>;
38
- }
39
-
40
- error_page 500 502 503 504 /500.html;
41
- client_max_body_size 4G;
42
- keepalive_timeout 10;
43
- }
@@ -1,13 +0,0 @@
1
- environment '<%= stage %>' || 'development'
2
-
3
- threads 3,3
4
-
5
- bind "unix:///<%= puma_sock %>"
6
- pidfile "<%= puma_pid %>"
7
- state_path "<%= puma_state %>"
8
-
9
- daemonize true
10
-
11
- stdout_redirect '<%= shared_path %>/log/puma.stdout.log', '<%= shared_path %>/log/puma.stderror.log', true
12
-
13
- activate_control_app "unix:///<%= puma_ctl_sock %>"
@@ -1,114 +0,0 @@
1
- # MANAGED BY CAPISTRANO
2
-
3
-
4
- ##### DATABASE #################################################################
5
-
6
- database:
7
- adapter: mysql2
8
- database: casserver_dev
9
- username: casserver_user
10
- password: DaDLw7a7oXZVWz
11
- host: core-internal.cg3ywao0k1nv.us-west-2.rds.amazonaws.com
12
- reconnect: true
13
-
14
- #disable_auto_migrations: true
15
-
16
- ##### AUTHENTICATION ###########################################################
17
-
18
- authenticator:
19
- class: CASServer::Authenticators::ActiveDirectoryLDAP
20
- ldap:
21
- host: core-dc-1.synapsedev.com
22
- port: 389
23
- base: OU=SBSUsers,OU=Users,OU=MyBusiness,DC=synapsedev,DC=com
24
- filter: (&(objectCategory=person)(objectClass=user))
25
- auth_user: SYNAPSEDEV\~svcProvisioningConf
26
- auth_password: IZE6CgJhIZZYbKfyW4Po
27
- extra_attributes: name, mail, memberOf, synapseRecursiveGroups, synapseExtendedAttributes, givenname, sn, pinNumber, department, company, l, synapseAccessCardNumber
28
-
29
- theme: simple
30
-
31
- organization: Synapse
32
-
33
- infoline: Powered by <a href="http://code.google.com/p/rubycas-server/">RubyCAS-Server</a>
34
-
35
- # Custom views directory. If set, this will be used instead of 'lib/casserver/views'.
36
- custom_views: <%= deploy_to %>/current/lib/casserver/views
37
-
38
- # Custom public directory. If set, static content (css, etc.) will be served from here rather
39
- # than from rubycas-server's internal 'public' directory (but be mindful of any overriding
40
- # settings you may have in your web server's config).
41
- public_dir: <%= deploy_to %>/current/public
42
-
43
- default_locale: en
44
-
45
- ##### LOGGING ##################################################################
46
-
47
- log:
48
- file: <%= shared_path %>/log/casserver.log
49
- level: DEBUG
50
-
51
-
52
- # If you want full database logging, uncomment this next section.
53
- # Every SQL query will be logged here. This is useful for debugging database
54
- # problems.
55
-
56
- #db_log:
57
- # file: /var/log/casserver_db.log
58
-
59
-
60
- # Setting the following option to true will disable CLI output to stdout.
61
- # i.e. this will get rid of messages like ">>> Redirecting RubyCAS-Server log..."
62
- # This is useful when, for example, you're running rspecs.
63
-
64
- #quiet: true
65
-
66
-
67
- ##### SINGLE SIGN-OUT ##########################################################
68
-
69
- # When a user logs in to a CAS-enabled client application, that application
70
- # generally opens its own local user session. When the user then logs out
71
- # through the CAS server, each of the CAS-enabled client applications need
72
- # to be notified so that they can close their own local sessions for that user.
73
- #
74
- # Up until recently this was not possible within CAS. However, a method for
75
- # performing this notification was recently added to the protocol (in CAS 3.1).
76
- # This works exactly as described above -- when the user logs out, the CAS
77
- # server individually contacts each client service and notifies it of the
78
- # logout. Currently not all client applications support this, so this
79
- # behaviour is disabled by default. To enable it, uncomment the following
80
- # configuration line. Note that currently it is not possible to enable
81
- # or disable single-sign-out on a per-service basis, but this functionality
82
- # is planned for a future release.
83
-
84
- enable_single_sign_out: true
85
-
86
-
87
- ##### OTHER ####################################################################
88
-
89
- # You can set various ticket expiry times (specify the value in seconds).
90
-
91
- # Unused login and service tickets become unusable this many seconds after
92
- # they are created. (Defaults to 5 minutes)
93
-
94
- #maximum_unused_login_ticket_lifetime: 300
95
- #maximum_unused_service_ticket_lifetime: 300
96
-
97
- # The server must periodically delete old tickets (login tickets, service tickets
98
- # proxy-granting tickets, and ticket-granting tickets) to prevent buildup of
99
- # stale data. This effectively limits the maximum length of a CAS session to
100
- # the lifetime given here (in seconds). (Defaults to 48 hours)
101
- #
102
- # Note that this limit is not enforced on the client side; it refers only to the
103
- # the maximum lifetime of tickets on the CAS server.
104
-
105
- #maximum_session_lifetime: 172800
106
-
107
-
108
- # If you want the usernames entered on the login page to be automatically
109
- # downcased (converted to lowercase), enable the following option. When this
110
- # option is set to true, if the user enters "JSmith" as their username, the
111
- # system will automatically
112
- # convert this to "jsmith".
113
-
114
- downcase_username: true