rubycas-server 0.7.1.1 → 1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +292 -0
- data/Gemfile +3 -0
- data/LICENSE +26 -0
- data/README.md +36 -0
- data/Rakefile +0 -3
- data/bin/rubycas-server +24 -19
- data/lib/casserver.rb +7 -110
- data/lib/casserver/authenticators/active_directory_ldap.rb +8 -0
- data/lib/casserver/authenticators/active_resource.rb +125 -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 +30 -11
- data/lib/casserver/authenticators/client_certificate.rb +7 -6
- data/lib/casserver/authenticators/google.rb +13 -9
- data/lib/casserver/authenticators/ldap.rb +37 -28
- data/lib/casserver/authenticators/ntlm.rb +9 -9
- data/lib/casserver/authenticators/open_id.rb +3 -3
- data/lib/casserver/authenticators/sql.rb +65 -34
- data/lib/casserver/authenticators/sql_authlogic.rb +93 -0
- data/lib/casserver/authenticators/sql_encrypted.rb +44 -44
- data/lib/casserver/authenticators/sql_md5.rb +2 -2
- data/lib/casserver/authenticators/sql_rest_auth.rb +82 -0
- data/lib/casserver/authenticators/test.rb +10 -7
- data/lib/casserver/cas.rb +94 -94
- data/lib/casserver/localization.rb +91 -0
- data/lib/casserver/model.rb +270 -0
- data/lib/casserver/server.rb +745 -0
- data/lib/casserver/utils.rb +9 -7
- 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/po/de_DE/rubycas-server.po +127 -0
- data/po/es_ES/rubycas-server.po +123 -0
- data/po/fr_FR/rubycas-server.po +128 -0
- data/po/ja_JP/rubycas-server.po +126 -0
- data/po/pl_PL/rubycas-server.po +123 -0
- data/po/pt_BR/rubycas-server.po +123 -0
- data/po/ru_RU/rubycas-server.po +118 -0
- data/po/rubycas-server.pot +112 -0
- data/po/zh_CN/rubycas-server.po +113 -0
- data/po/zh_TW/rubycas-server.po +113 -0
- data/public/themes/cas.css +121 -0
- data/{lib → public}/themes/notice.png +0 -0
- data/{lib → public}/themes/ok.png +0 -0
- data/{lib → public}/themes/simple/bg.png +0 -0
- data/public/themes/simple/favicon.png +0 -0
- data/{lib → public}/themes/simple/login_box_bg.png +0 -0
- data/{lib → public}/themes/simple/logo.png +0 -0
- data/public/themes/simple/theme.css +28 -0
- data/{lib → public}/themes/urbacon/bg.png +0 -0
- data/{lib → public}/themes/urbacon/login_box_bg.png +0 -0
- data/{lib → public}/themes/urbacon/logo.png +0 -0
- data/public/themes/urbacon/theme.css +33 -0
- data/{lib → public}/themes/warning.png +0 -0
- data/resources/init.d.sh +1 -1
- data/rubycas-server.gemspec +57 -0
- data/setup.rb +4 -4
- 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 +149 -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 +88 -0
- data/spec/utils_spec.rb +53 -0
- data/tasks/bundler.rake +4 -0
- data/tasks/db/migrate.rake +12 -0
- data/tasks/localization.rake +13 -0
- data/tasks/spec.rake +10 -0
- metadata +294 -91
- data/CHANGELOG.txt +0 -1
- data/History.txt +0 -252
- data/LICENSE.txt +0 -504
- data/Manifest.txt +0 -72
- data/PostInstall.txt +0 -3
- data/README.txt +0 -25
- data/bin/rubycas-server-ctl +0 -22
- data/config.example.yml +0 -442
- data/config/hoe.rb +0 -76
- data/config/requirements.rb +0 -15
- data/custom_views.example.rb +0 -11
- data/lib/casserver/conf.rb +0 -112
- data/lib/casserver/controllers.rb +0 -452
- data/lib/casserver/environment.rb +0 -30
- data/lib/casserver/models.rb +0 -218
- data/lib/casserver/postambles.rb +0 -174
- data/lib/casserver/version.rb +0 -9
- data/lib/casserver/views.rb +0 -243
- data/lib/rubycas-server.rb +0 -1
- data/lib/rubycas-server/version.rb +0 -1
- data/lib/themes/cas.css +0 -121
- data/lib/themes/simple/theme.css +0 -28
- data/lib/themes/urbacon/theme.css +0 -33
- data/misc/basic_cas_single_signon_mechanism_diagram.png +0 -0
- data/misc/basic_cas_single_signon_mechanism_diagram.svg +0 -652
- data/script/console +0 -10
- data/script/destroy +0 -14
- data/script/generate +0 -14
- data/script/txt2html +0 -82
- data/tasks/deployment.rake +0 -34
- data/tasks/environment.rake +0 -7
- data/tasks/website.rake +0 -17
- data/vendor/isaac_0.9.1/LICENSE +0 -26
- data/vendor/isaac_0.9.1/README +0 -78
- data/vendor/isaac_0.9.1/TODO +0 -3
- data/vendor/isaac_0.9.1/VERSIONS +0 -3
- data/vendor/isaac_0.9.1/crypt/ISAAC.rb +0 -171
- data/vendor/isaac_0.9.1/isaac.gemspec +0 -39
- data/vendor/isaac_0.9.1/setup.rb +0 -596
- data/vendor/isaac_0.9.1/test/TC_ISAAC.rb +0 -76
- data/website/index.html +0 -40
- data/website/index.txt +0 -3
- data/website/javascripts/rounded_corners_lite.inc.js +0 -285
- data/website/stylesheets/screen.css +0 -138
- data/website/template.html.erb +0 -40
@@ -0,0 +1,50 @@
|
|
1
|
+
server: webrick
|
2
|
+
port: 6543
|
3
|
+
#ssl_cert: test.pem
|
4
|
+
#uri_path: /cas
|
5
|
+
#bind_address: 0.0.0.0
|
6
|
+
|
7
|
+
# database:
|
8
|
+
# adapter: mysql
|
9
|
+
# database: casserver
|
10
|
+
# username: root
|
11
|
+
# password:
|
12
|
+
# host: localhost
|
13
|
+
# reconnect: true
|
14
|
+
database:
|
15
|
+
adapter: sqlite3
|
16
|
+
database: spec/casserver_spec.db
|
17
|
+
|
18
|
+
disable_auto_migrations: true
|
19
|
+
|
20
|
+
quiet: true
|
21
|
+
|
22
|
+
authenticator:
|
23
|
+
class: CASServer::Authenticators::Test
|
24
|
+
password: spec_password
|
25
|
+
|
26
|
+
theme: simple
|
27
|
+
|
28
|
+
organization: "RSPEC-TEST"
|
29
|
+
|
30
|
+
infoline: "This is an rspec test."
|
31
|
+
|
32
|
+
#custom_views: /path/to/custom/views
|
33
|
+
|
34
|
+
default_locale: en
|
35
|
+
|
36
|
+
log:
|
37
|
+
file: casserver_spec.log
|
38
|
+
level: DEBUG
|
39
|
+
|
40
|
+
#db_log:
|
41
|
+
# file: casserver_spec_db.log
|
42
|
+
|
43
|
+
enable_single_sign_out: true
|
44
|
+
|
45
|
+
#maximum_unused_login_ticket_lifetime: 300
|
46
|
+
#maximum_unused_service_ticket_lifetime: 300
|
47
|
+
|
48
|
+
#maximum_session_lifetime: 172800
|
49
|
+
|
50
|
+
#downcase_username: true
|
data/spec/model_spec.rb
ADDED
@@ -0,0 +1,42 @@
|
|
1
|
+
# encoding: UTF-8
|
2
|
+
require File.dirname(__FILE__) + '/spec_helper'
|
3
|
+
|
4
|
+
module CASServer
|
5
|
+
end
|
6
|
+
require 'casserver/model'
|
7
|
+
|
8
|
+
describe CASServer::Model::LoginTicket, '.cleanup(max_lifetime, max_unconsumed_lifetime)' do
|
9
|
+
let(:max_lifetime) { -1 }
|
10
|
+
let(:max_unconsumed_lifetime) { -2 }
|
11
|
+
|
12
|
+
before do
|
13
|
+
load_server(File.dirname(__FILE__) + "/default_config.yml")
|
14
|
+
reset_spec_database
|
15
|
+
|
16
|
+
CASServer::Model::LoginTicket.create :ticket => 'test', :client_hostname => 'test.local'
|
17
|
+
end
|
18
|
+
|
19
|
+
it 'should destroy all tickets created before the max lifetime' do
|
20
|
+
expect {
|
21
|
+
CASServer::Model::LoginTicket.cleanup(max_lifetime, max_unconsumed_lifetime)
|
22
|
+
}.to change(CASServer::Model::LoginTicket, :count).by(-1)
|
23
|
+
end
|
24
|
+
|
25
|
+
it 'should destroy all unconsumed tickets not exceeding the max lifetime' do
|
26
|
+
expect {
|
27
|
+
CASServer::Model::LoginTicket.cleanup(max_lifetime, max_unconsumed_lifetime)
|
28
|
+
}.to change(CASServer::Model::LoginTicket, :count).by(-1)
|
29
|
+
end
|
30
|
+
end
|
31
|
+
|
32
|
+
describe CASServer::Model::LoginTicket, '#to_s' do
|
33
|
+
let(:ticket) { 'test' }
|
34
|
+
|
35
|
+
before do
|
36
|
+
@login_ticket = CASServer::Model::LoginTicket.new :ticket => ticket
|
37
|
+
end
|
38
|
+
|
39
|
+
it 'should delegate #to_s to #ticket' do
|
40
|
+
@login_ticket.to_s.should == ticket
|
41
|
+
end
|
42
|
+
end
|
data/spec/spec.opts
ADDED
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,88 @@
|
|
1
|
+
require 'rubygems'
|
2
|
+
require 'sinatra'
|
3
|
+
require 'rack/test'
|
4
|
+
require 'rspec'
|
5
|
+
#require 'spec/autorun'
|
6
|
+
#require 'spec/interop/test'
|
7
|
+
require 'logger'
|
8
|
+
require 'ostruct'
|
9
|
+
|
10
|
+
require 'capybara'
|
11
|
+
require 'capybara/dsl'
|
12
|
+
|
13
|
+
# set test environment
|
14
|
+
set :environment, :test
|
15
|
+
set :run, false
|
16
|
+
set :raise_errors, true
|
17
|
+
set :logging, false
|
18
|
+
|
19
|
+
|
20
|
+
if Dir.getwd =~ /\/spec$/
|
21
|
+
# Avoid potential weirdness by changing the working directory to the CASServer root
|
22
|
+
FileUtils.cd('..')
|
23
|
+
end
|
24
|
+
|
25
|
+
def silence_warnings
|
26
|
+
old_verbose, $VERBOSE = $VERBOSE, nil
|
27
|
+
yield
|
28
|
+
ensure
|
29
|
+
$VERBOSE = old_verbose
|
30
|
+
end
|
31
|
+
|
32
|
+
# Ugly monkeypatch to allow us to test for correct redirection to
|
33
|
+
# external services.
|
34
|
+
#
|
35
|
+
# This will likely break in the future when Capybara or RackTest are upgraded.
|
36
|
+
class Capybara::Driver::RackTest
|
37
|
+
def current_url
|
38
|
+
if @redirected_to_external_url
|
39
|
+
@redirected_to_external_url
|
40
|
+
else
|
41
|
+
request.url rescue ""
|
42
|
+
end
|
43
|
+
end
|
44
|
+
|
45
|
+
def follow_redirects!
|
46
|
+
if response.redirect? && response['Location'] =~ /^http[s]?:/
|
47
|
+
@redirected_to_external_url = response['Location']
|
48
|
+
else
|
49
|
+
5.times do
|
50
|
+
follow_redirect! if response.redirect?
|
51
|
+
end
|
52
|
+
raise Capybara::InfiniteRedirectError, "redirected more than 5 times, check for infinite redirects." if response.redirect?
|
53
|
+
end
|
54
|
+
end
|
55
|
+
end
|
56
|
+
|
57
|
+
# This called in specs' `before` block.
|
58
|
+
# Due to the way Sinatra applications are loaded,
|
59
|
+
# we're forced to delay loading of the server code
|
60
|
+
# until the start of each test so that certain
|
61
|
+
# configuraiton options can be changed (e.g. `uri_path`)
|
62
|
+
def load_server(config_file)
|
63
|
+
ENV['CONFIG_FILE'] = config_file
|
64
|
+
|
65
|
+
silence_warnings do
|
66
|
+
load File.dirname(__FILE__) + '/../lib/casserver/server.rb'
|
67
|
+
end
|
68
|
+
|
69
|
+
CASServer::Server.enable(:raise_errors)
|
70
|
+
CASServer::Server.disable(:show_exceptions)
|
71
|
+
|
72
|
+
#Capybara.current_driver = :selenium
|
73
|
+
Capybara.app = CASServer::Server
|
74
|
+
end
|
75
|
+
|
76
|
+
# Deletes the sqlite3 database specified in the app's config
|
77
|
+
# and runs the db:migrate rake tasks to rebuild the database schema.
|
78
|
+
def reset_spec_database
|
79
|
+
raise "Cannot reset the spec database because config[:database][:database] is not defined." unless
|
80
|
+
CASServer::Server.config[:database] && CASServer::Server.config[:database][:database]
|
81
|
+
|
82
|
+
FileUtils.rm_f(CASServer::Server.config[:database][:database])
|
83
|
+
|
84
|
+
ActiveRecord::Base.logger = Logger.new(STDOUT)
|
85
|
+
ActiveRecord::Base.logger.level = Logger::ERROR
|
86
|
+
ActiveRecord::Migration.verbose = false
|
87
|
+
ActiveRecord::Migrator.migrate("db/migrate")
|
88
|
+
end
|
data/spec/utils_spec.rb
ADDED
@@ -0,0 +1,53 @@
|
|
1
|
+
# encoding: UTF-8
|
2
|
+
require File.dirname(__FILE__) + '/spec_helper'
|
3
|
+
|
4
|
+
module CASServer
|
5
|
+
end
|
6
|
+
require 'casserver/utils'
|
7
|
+
|
8
|
+
describe CASServer::Utils, '#random_string(max_length = 29)' do
|
9
|
+
before do
|
10
|
+
load_server(File.dirname(__FILE__) + "/default_config.yml")
|
11
|
+
reset_spec_database
|
12
|
+
end
|
13
|
+
|
14
|
+
context 'when max length is not passed in' do
|
15
|
+
it 'should return a random string of length 29' do
|
16
|
+
subject.random_string.length.should == 29
|
17
|
+
end
|
18
|
+
end
|
19
|
+
|
20
|
+
context 'when max length is passed in' do
|
21
|
+
it 'should return a random string of the desired length' do
|
22
|
+
subject.random_string(30).length.should == 30
|
23
|
+
end
|
24
|
+
end
|
25
|
+
|
26
|
+
it 'should include the letter r in the random string' do
|
27
|
+
subject.random_string.should include 'r'
|
28
|
+
end
|
29
|
+
|
30
|
+
it 'should return a random string' do
|
31
|
+
random_string = subject.random_string
|
32
|
+
another_random_string = subject.random_string
|
33
|
+
random_string.should_not == another_random_string
|
34
|
+
end
|
35
|
+
end
|
36
|
+
|
37
|
+
describe CASServer::Utils, '#log_controller_action(controller, params)' do
|
38
|
+
let(:params) { {} }
|
39
|
+
let(:params_with_password) { { 'password' => 'test' } }
|
40
|
+
let(:params_with_password_filtered) { { 'password' => '******' } }
|
41
|
+
|
42
|
+
it 'should log the controller action' do
|
43
|
+
$LOG.should_receive(:debug).with 'Processing application::instance_eval {}'
|
44
|
+
|
45
|
+
subject.log_controller_action('application', params)
|
46
|
+
end
|
47
|
+
|
48
|
+
it 'should filter password parameters in the log' do
|
49
|
+
$LOG.should_receive(:debug).with "Processing application::instance_eval #{params_with_password_filtered.inspect}"
|
50
|
+
|
51
|
+
subject.log_controller_action('application', params_with_password)
|
52
|
+
end
|
53
|
+
end
|
data/tasks/bundler.rake
ADDED
@@ -0,0 +1,12 @@
|
|
1
|
+
namespace :db do
|
2
|
+
desc "bring your CAS server database schema up to date (options CONFIG=/path/to/config.yml)"
|
3
|
+
task :migrate do |t|
|
4
|
+
$:.unshift File.dirname(__FILE__) + "/../../lib"
|
5
|
+
|
6
|
+
require 'casserver/server'
|
7
|
+
|
8
|
+
CASServer::Model::Base.logger = Logger.new(STDOUT)
|
9
|
+
ActiveRecord::Migration.verbose = true
|
10
|
+
ActiveRecord::Migrator.migrate("db/migrate")
|
11
|
+
end
|
12
|
+
end
|
@@ -0,0 +1,13 @@
|
|
1
|
+
namespace :localization do
|
2
|
+
desc 'Scans the code for translatable strings and generates/updates the .po files'
|
3
|
+
task :po do
|
4
|
+
require 'gettext/utils'
|
5
|
+
GetText.update_pofiles("rubycas-server", Dir.glob("{lib,bin}/**/*.{rb}"), "rubycas-server ")
|
6
|
+
end
|
7
|
+
|
8
|
+
desc 'Creates .mo files from .po files and puts them in the locale dir'
|
9
|
+
task :mo do
|
10
|
+
require 'gettext/utils'
|
11
|
+
GetText.create_mofiles(true, "po", "locale")
|
12
|
+
end
|
13
|
+
end
|
data/tasks/spec.rake
ADDED
@@ -0,0 +1,10 @@
|
|
1
|
+
#begin
|
2
|
+
require 'rspec/core/rake_task'
|
3
|
+
desc 'Run RSpecs to confirm that all functionality is working as expected'
|
4
|
+
RSpec::Core::RakeTask.new('spec') do |t|
|
5
|
+
t.rspec_opts = ['--colour', '--format nested']
|
6
|
+
t.pattern = 'spec/**/*_spec.rb'
|
7
|
+
end
|
8
|
+
#rescue LoadError
|
9
|
+
# puts "Hiding spec tasks because RSpec is not available"
|
10
|
+
#end
|
metadata
CHANGED
@@ -1,7 +1,12 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubycas-server
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
4
|
+
hash: 15
|
5
|
+
prerelease:
|
6
|
+
segments:
|
7
|
+
- 1
|
8
|
+
- 0
|
9
|
+
version: "1.0"
|
5
10
|
platform: ruby
|
6
11
|
authors:
|
7
12
|
- Matt Zukowski
|
@@ -9,137 +14,335 @@ autorequire:
|
|
9
14
|
bindir: bin
|
10
15
|
cert_chain: []
|
11
16
|
|
12
|
-
date:
|
13
|
-
default_executable:
|
17
|
+
date: 2011-08-03 00:00:00 Z
|
14
18
|
dependencies:
|
15
19
|
- !ruby/object:Gem::Dependency
|
16
|
-
name:
|
20
|
+
name: activerecord
|
21
|
+
prerelease: false
|
22
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
23
|
+
none: false
|
24
|
+
requirements:
|
25
|
+
- - ~>
|
26
|
+
- !ruby/object:Gem::Version
|
27
|
+
hash: 15
|
28
|
+
segments:
|
29
|
+
- 2
|
30
|
+
- 3
|
31
|
+
- 6
|
32
|
+
version: 2.3.6
|
33
|
+
type: :runtime
|
34
|
+
version_requirements: *id001
|
35
|
+
- !ruby/object:Gem::Dependency
|
36
|
+
name: activesupport
|
37
|
+
prerelease: false
|
38
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
39
|
+
none: false
|
40
|
+
requirements:
|
41
|
+
- - ~>
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
hash: 15
|
44
|
+
segments:
|
45
|
+
- 2
|
46
|
+
- 3
|
47
|
+
- 6
|
48
|
+
version: 2.3.6
|
49
|
+
type: :runtime
|
50
|
+
version_requirements: *id002
|
51
|
+
- !ruby/object:Gem::Dependency
|
52
|
+
name: sinatra
|
53
|
+
prerelease: false
|
54
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
55
|
+
none: false
|
56
|
+
requirements:
|
57
|
+
- - ~>
|
58
|
+
- !ruby/object:Gem::Version
|
59
|
+
hash: 15
|
60
|
+
segments:
|
61
|
+
- 1
|
62
|
+
- 0
|
63
|
+
version: "1.0"
|
64
|
+
type: :runtime
|
65
|
+
version_requirements: *id003
|
66
|
+
- !ruby/object:Gem::Dependency
|
67
|
+
name: gettext
|
68
|
+
prerelease: false
|
69
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
70
|
+
none: false
|
71
|
+
requirements:
|
72
|
+
- - ~>
|
73
|
+
- !ruby/object:Gem::Version
|
74
|
+
hash: 11
|
75
|
+
segments:
|
76
|
+
- 2
|
77
|
+
- 1
|
78
|
+
- 0
|
79
|
+
version: 2.1.0
|
80
|
+
type: :runtime
|
81
|
+
version_requirements: *id004
|
82
|
+
- !ruby/object:Gem::Dependency
|
83
|
+
name: crypt-isaac
|
84
|
+
prerelease: false
|
85
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
86
|
+
none: false
|
87
|
+
requirements:
|
88
|
+
- - ~>
|
89
|
+
- !ruby/object:Gem::Version
|
90
|
+
hash: 57
|
91
|
+
segments:
|
92
|
+
- 0
|
93
|
+
- 9
|
94
|
+
- 1
|
95
|
+
version: 0.9.1
|
96
|
+
type: :runtime
|
97
|
+
version_requirements: *id005
|
98
|
+
- !ruby/object:Gem::Dependency
|
99
|
+
name: rack-test
|
100
|
+
prerelease: false
|
101
|
+
requirement: &id006 !ruby/object:Gem::Requirement
|
102
|
+
none: false
|
103
|
+
requirements:
|
104
|
+
- - ">="
|
105
|
+
- !ruby/object:Gem::Version
|
106
|
+
hash: 3
|
107
|
+
segments:
|
108
|
+
- 0
|
109
|
+
version: "0"
|
17
110
|
type: :development
|
18
|
-
|
19
|
-
|
111
|
+
version_requirements: *id006
|
112
|
+
- !ruby/object:Gem::Dependency
|
113
|
+
name: capybara
|
114
|
+
prerelease: false
|
115
|
+
requirement: &id007 !ruby/object:Gem::Requirement
|
116
|
+
none: false
|
20
117
|
requirements:
|
21
118
|
- - ">="
|
22
119
|
- !ruby/object:Gem::Version
|
23
|
-
|
24
|
-
|
120
|
+
hash: 3
|
121
|
+
segments:
|
122
|
+
- 0
|
123
|
+
version: "0"
|
124
|
+
type: :development
|
125
|
+
version_requirements: *id007
|
126
|
+
- !ruby/object:Gem::Dependency
|
127
|
+
name: rspec
|
128
|
+
prerelease: false
|
129
|
+
requirement: &id008 !ruby/object:Gem::Requirement
|
130
|
+
none: false
|
131
|
+
requirements:
|
132
|
+
- - ">="
|
133
|
+
- !ruby/object:Gem::Version
|
134
|
+
hash: 3
|
135
|
+
segments:
|
136
|
+
- 0
|
137
|
+
version: "0"
|
138
|
+
type: :development
|
139
|
+
version_requirements: *id008
|
140
|
+
- !ruby/object:Gem::Dependency
|
141
|
+
name: rspec-core
|
142
|
+
prerelease: false
|
143
|
+
requirement: &id009 !ruby/object:Gem::Requirement
|
144
|
+
none: false
|
145
|
+
requirements:
|
146
|
+
- - ">="
|
147
|
+
- !ruby/object:Gem::Version
|
148
|
+
hash: 3
|
149
|
+
segments:
|
150
|
+
- 0
|
151
|
+
version: "0"
|
152
|
+
type: :development
|
153
|
+
version_requirements: *id009
|
154
|
+
- !ruby/object:Gem::Dependency
|
155
|
+
name: sqlite3
|
156
|
+
prerelease: false
|
157
|
+
requirement: &id010 !ruby/object:Gem::Requirement
|
158
|
+
none: false
|
159
|
+
requirements:
|
160
|
+
- - ~>
|
161
|
+
- !ruby/object:Gem::Version
|
162
|
+
hash: 25
|
163
|
+
segments:
|
164
|
+
- 1
|
165
|
+
- 3
|
166
|
+
- 1
|
167
|
+
version: 1.3.1
|
168
|
+
type: :development
|
169
|
+
version_requirements: *id010
|
170
|
+
- !ruby/object:Gem::Dependency
|
171
|
+
name: net-ldap
|
172
|
+
prerelease: false
|
173
|
+
requirement: &id011 !ruby/object:Gem::Requirement
|
174
|
+
none: false
|
175
|
+
requirements:
|
176
|
+
- - ~>
|
177
|
+
- !ruby/object:Gem::Version
|
178
|
+
hash: 25
|
179
|
+
segments:
|
180
|
+
- 0
|
181
|
+
- 1
|
182
|
+
- 1
|
183
|
+
version: 0.1.1
|
184
|
+
type: :development
|
185
|
+
version_requirements: *id011
|
186
|
+
- !ruby/object:Gem::Dependency
|
187
|
+
name: activeresource
|
188
|
+
prerelease: false
|
189
|
+
requirement: &id012 !ruby/object:Gem::Requirement
|
190
|
+
none: false
|
191
|
+
requirements:
|
192
|
+
- - ~>
|
193
|
+
- !ruby/object:Gem::Version
|
194
|
+
hash: 15
|
195
|
+
segments:
|
196
|
+
- 2
|
197
|
+
- 3
|
198
|
+
- 6
|
199
|
+
version: 2.3.6
|
200
|
+
type: :development
|
201
|
+
version_requirements: *id012
|
25
202
|
description: Provides single sign-on authentication for web applications using the CAS protocol.
|
26
203
|
email:
|
27
204
|
- matt@zukowski.ca
|
28
205
|
executables:
|
29
206
|
- rubycas-server
|
30
|
-
- rubycas-server-ctl
|
31
207
|
extensions: []
|
32
208
|
|
33
209
|
extra_rdoc_files:
|
34
|
-
- CHANGELOG
|
35
|
-
-
|
36
|
-
-
|
37
|
-
- Manifest.txt
|
38
|
-
- PostInstall.txt
|
39
|
-
- README.txt
|
40
|
-
- website/index.txt
|
210
|
+
- CHANGELOG
|
211
|
+
- LICENSE
|
212
|
+
- README.md
|
41
213
|
files:
|
42
|
-
- CHANGELOG
|
43
|
-
-
|
44
|
-
-
|
45
|
-
- Manifest.txt
|
46
|
-
- PostInstall.txt
|
47
|
-
- README.txt
|
214
|
+
- CHANGELOG
|
215
|
+
- LICENSE
|
216
|
+
- README.md
|
48
217
|
- Rakefile
|
218
|
+
- setup.rb
|
49
219
|
- bin/rubycas-server
|
50
|
-
- bin/rubycas-server-ctl
|
51
|
-
- config.example.yml
|
52
|
-
- config/hoe.rb
|
53
|
-
- config/requirements.rb
|
54
|
-
- custom_views.example.rb
|
55
220
|
- lib/casserver.rb
|
56
|
-
- lib/casserver/
|
57
|
-
- lib/casserver/
|
58
|
-
- lib/casserver/
|
59
|
-
- lib/casserver/authenticators/
|
60
|
-
- lib/casserver/authenticators/
|
61
|
-
- lib/casserver/authenticators/
|
221
|
+
- lib/casserver/localization.rb
|
222
|
+
- lib/casserver/utils.rb
|
223
|
+
- lib/casserver/cas.rb
|
224
|
+
- lib/casserver/authenticators/active_resource.rb
|
225
|
+
- lib/casserver/authenticators/sql_md5.rb
|
226
|
+
- lib/casserver/authenticators/authlogic_crypto_providers/aes256.rb
|
227
|
+
- lib/casserver/authenticators/authlogic_crypto_providers/bcrypt.rb
|
228
|
+
- lib/casserver/authenticators/authlogic_crypto_providers/sha1.rb
|
229
|
+
- lib/casserver/authenticators/authlogic_crypto_providers/md5.rb
|
230
|
+
- lib/casserver/authenticators/authlogic_crypto_providers/sha512.rb
|
62
231
|
- lib/casserver/authenticators/open_id.rb
|
232
|
+
- lib/casserver/authenticators/client_certificate.rb
|
233
|
+
- lib/casserver/authenticators/active_directory_ldap.rb
|
234
|
+
- lib/casserver/authenticators/sql_rest_auth.rb
|
235
|
+
- lib/casserver/authenticators/test.rb
|
63
236
|
- lib/casserver/authenticators/sql.rb
|
64
237
|
- lib/casserver/authenticators/sql_encrypted.rb
|
65
|
-
- lib/casserver/authenticators/
|
66
|
-
- lib/casserver/authenticators/
|
67
|
-
- lib/casserver/
|
68
|
-
- lib/casserver/
|
69
|
-
- lib/casserver/
|
70
|
-
- lib/casserver/
|
71
|
-
- lib/casserver/
|
72
|
-
-
|
73
|
-
-
|
74
|
-
-
|
75
|
-
-
|
76
|
-
-
|
77
|
-
-
|
78
|
-
-
|
79
|
-
-
|
80
|
-
-
|
81
|
-
-
|
82
|
-
-
|
83
|
-
-
|
84
|
-
-
|
85
|
-
-
|
86
|
-
-
|
87
|
-
-
|
88
|
-
-
|
89
|
-
-
|
90
|
-
-
|
91
|
-
-
|
238
|
+
- lib/casserver/authenticators/sql_authlogic.rb
|
239
|
+
- lib/casserver/authenticators/google.rb
|
240
|
+
- lib/casserver/authenticators/base.rb
|
241
|
+
- lib/casserver/authenticators/ntlm.rb
|
242
|
+
- lib/casserver/authenticators/ldap.rb
|
243
|
+
- lib/casserver/model.rb
|
244
|
+
- lib/casserver/server.rb
|
245
|
+
- public/themes/notice.png
|
246
|
+
- public/themes/cas.css
|
247
|
+
- public/themes/urbacon/theme.css
|
248
|
+
- public/themes/urbacon/bg.png
|
249
|
+
- public/themes/urbacon/login_box_bg.png
|
250
|
+
- public/themes/urbacon/logo.png
|
251
|
+
- public/themes/ok.png
|
252
|
+
- public/themes/simple/theme.css
|
253
|
+
- public/themes/simple/bg.png
|
254
|
+
- public/themes/simple/login_box_bg.png
|
255
|
+
- public/themes/simple/logo.png
|
256
|
+
- public/themes/simple/favicon.png
|
257
|
+
- public/themes/warning.png
|
258
|
+
- po/ja_JP/rubycas-server.po
|
259
|
+
- po/es_ES/rubycas-server.po
|
260
|
+
- po/rubycas-server.pot
|
261
|
+
- po/zh_TW/rubycas-server.po
|
262
|
+
- po/de_DE/rubycas-server.po
|
263
|
+
- po/pt_BR/rubycas-server.po
|
264
|
+
- po/zh_CN/rubycas-server.po
|
265
|
+
- po/ru_RU/rubycas-server.po
|
266
|
+
- po/pl_PL/rubycas-server.po
|
267
|
+
- po/fr_FR/rubycas-server.po
|
92
268
|
- resources/init.d.sh
|
93
|
-
-
|
94
|
-
-
|
95
|
-
-
|
96
|
-
-
|
97
|
-
-
|
98
|
-
-
|
99
|
-
-
|
100
|
-
-
|
101
|
-
-
|
102
|
-
-
|
103
|
-
-
|
104
|
-
-
|
105
|
-
-
|
106
|
-
-
|
107
|
-
-
|
108
|
-
-
|
109
|
-
-
|
110
|
-
-
|
111
|
-
-
|
112
|
-
-
|
113
|
-
-
|
114
|
-
|
115
|
-
homepage: http://rubycas-server
|
269
|
+
- tasks/spec.rake
|
270
|
+
- tasks/localization.rake
|
271
|
+
- tasks/bundler.rake
|
272
|
+
- tasks/db/migrate.rake
|
273
|
+
- lib/casserver/views/layout.erb
|
274
|
+
- lib/casserver/views/_login_form.erb
|
275
|
+
- lib/casserver/views/login.erb
|
276
|
+
- lib/casserver/views/validate.erb
|
277
|
+
- lib/casserver/views/proxy_validate.builder
|
278
|
+
- lib/casserver/views/proxy.builder
|
279
|
+
- lib/casserver/views/service_validate.builder
|
280
|
+
- Gemfile
|
281
|
+
- rubycas-server.gemspec
|
282
|
+
- spec/alt_config.yml
|
283
|
+
- spec/authenticators/active_resource_spec.rb
|
284
|
+
- spec/authenticators/ldap_spec.rb
|
285
|
+
- spec/casserver_spec.rb
|
286
|
+
- spec/default_config.yml
|
287
|
+
- spec/model_spec.rb
|
288
|
+
- spec/spec.opts
|
289
|
+
- spec/spec_helper.rb
|
290
|
+
- spec/utils_spec.rb
|
291
|
+
homepage: http://code.google.com/p/rubycas-server/
|
292
|
+
licenses: []
|
293
|
+
|
116
294
|
post_install_message: |+
|
117
295
|
|
118
296
|
For more information on RubyCAS-Server, see http://code.google.com/p/rubycas-server
|
119
297
|
|
298
|
+
If you plan on using RubyCAS-Server with languages other than English, please cd into the
|
299
|
+
RubyCAS-Server installation directory (where the gem is installed) and type `rake localization:mo`
|
300
|
+
to build the LOCALE_LC files.
|
301
|
+
|
120
302
|
rdoc_options:
|
303
|
+
- --quiet
|
304
|
+
- --title
|
305
|
+
- RubyCAS-Server Documentation
|
306
|
+
- --opname
|
307
|
+
- index.html
|
308
|
+
- --line-numbers
|
121
309
|
- --main
|
122
|
-
- README.
|
310
|
+
- README.md
|
311
|
+
- --inline-source
|
123
312
|
require_paths:
|
124
313
|
- lib
|
125
314
|
required_ruby_version: !ruby/object:Gem::Requirement
|
315
|
+
none: false
|
126
316
|
requirements:
|
127
317
|
- - ">="
|
128
318
|
- !ruby/object:Gem::Version
|
319
|
+
hash: 3
|
320
|
+
segments:
|
321
|
+
- 0
|
129
322
|
version: "0"
|
130
|
-
version:
|
131
323
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
324
|
+
none: false
|
132
325
|
requirements:
|
133
326
|
- - ">="
|
134
327
|
- !ruby/object:Gem::Version
|
328
|
+
hash: 3
|
329
|
+
segments:
|
330
|
+
- 0
|
135
331
|
version: "0"
|
136
|
-
version:
|
137
332
|
requirements: []
|
138
333
|
|
139
|
-
rubyforge_project:
|
140
|
-
rubygems_version: 1.
|
334
|
+
rubyforge_project:
|
335
|
+
rubygems_version: 1.8.5
|
141
336
|
signing_key:
|
142
|
-
specification_version:
|
337
|
+
specification_version: 3
|
143
338
|
summary: Provides single sign-on authentication for web applications using the CAS protocol.
|
144
|
-
test_files:
|
145
|
-
|
339
|
+
test_files:
|
340
|
+
- spec/alt_config.yml
|
341
|
+
- spec/authenticators/active_resource_spec.rb
|
342
|
+
- spec/authenticators/ldap_spec.rb
|
343
|
+
- spec/casserver_spec.rb
|
344
|
+
- spec/default_config.yml
|
345
|
+
- spec/model_spec.rb
|
346
|
+
- spec/spec.opts
|
347
|
+
- spec/spec_helper.rb
|
348
|
+
- spec/utils_spec.rb
|