shibbolite 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/MIT-LICENSE +20 -0
- data/README.rdoc +108 -0
- data/Rakefile +21 -0
- data/app/concerns/shibbolite/filters.rb +44 -0
- data/app/concerns/shibbolite/helpers.rb +48 -0
- data/app/concerns/shibbolite/user.rb +21 -0
- data/app/controllers/shibbolite/shibboleth_controller.rb +53 -0
- data/app/views/layouts/shibbolite/shibboleth.html.erb +32 -0
- data/app/views/shibbolite/shibboleth/access_denied.html.erb +7 -0
- data/app/views/shibbolite/shibboleth/logout_message.html.erb +7 -0
- data/config/routes.rb +6 -0
- data/lib/generators/shibbolite/install_generator.rb +17 -0
- data/lib/generators/shibbolite/migration_generator.rb +14 -0
- data/lib/generators/templates/shibbolite_config.rb +51 -0
- data/lib/shibbolite/engine.rb +13 -0
- data/lib/shibbolite/version.rb +3 -0
- data/lib/shibbolite.rb +58 -0
- data/spec/controllers/filters_test_controller_spec.rb +146 -0
- data/spec/controllers/helpers_test_controller_spec.rb +146 -0
- data/spec/controllers/shibbolite/shibboleth_controller_spec.rb +114 -0
- data/spec/controllers/static_controller_spec.rb +5 -0
- data/spec/dummy/Rakefile +6 -0
- data/spec/dummy/app/assets/javascripts/application.js +13 -0
- data/spec/dummy/app/assets/stylesheets/application.css +13 -0
- data/spec/dummy/app/assets/stylesheets/scaffold.css +56 -0
- data/spec/dummy/app/controllers/application_controller.rb +5 -0
- data/spec/dummy/app/controllers/filters_test_controller.rb +37 -0
- data/spec/dummy/app/controllers/helpers_test_controller.rb +44 -0
- data/spec/dummy/app/controllers/static_controller.rb +21 -0
- data/spec/dummy/app/models/user.rb +3 -0
- data/spec/dummy/app/views/filters_test/dummy.html.erb +0 -0
- data/spec/dummy/app/views/helpers_test/dummy.html.erb +0 -0
- data/spec/dummy/app/views/layouts/application.html.erb +14 -0
- data/spec/dummy/app/views/static/admin_resource.html.erb +3 -0
- data/spec/dummy/app/views/static/home.html.erb +35 -0
- data/spec/dummy/app/views/static/user_resource.html.erb +5 -0
- data/spec/dummy/bin/bundle +3 -0
- data/spec/dummy/bin/rails +4 -0
- data/spec/dummy/bin/rake +4 -0
- data/spec/dummy/config/application.rb +17 -0
- data/spec/dummy/config/boot.rb +5 -0
- data/spec/dummy/config/database.yml +25 -0
- data/spec/dummy/config/environment.rb +5 -0
- data/spec/dummy/config/environments/development.rb +29 -0
- data/spec/dummy/config/environments/production.rb +80 -0
- data/spec/dummy/config/environments/test.rb +36 -0
- data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/spec/dummy/config/initializers/secret_token.rb +12 -0
- data/spec/dummy/config/initializers/session_store.rb +3 -0
- data/spec/dummy/config/initializers/shibbolite_config.rb +51 -0
- data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/spec/dummy/config/routes.rb +6 -0
- data/spec/dummy/config.ru +4 -0
- data/spec/dummy/db/development.sqlite3 +0 -0
- data/spec/dummy/db/migrate/20140404162119_create_users.rb +9 -0
- data/spec/dummy/db/migrate/20140414172304_add_shibboleth_attributes_to_users.rb +12 -0
- data/spec/dummy/db/schema.rb +30 -0
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/log/development.log +19082 -0
- data/spec/dummy/log/test.log +46778 -0
- data/spec/dummy/public/404.html +58 -0
- data/spec/dummy/public/422.html +58 -0
- data/spec/dummy/public/500.html +57 -0
- data/spec/dummy/public/favicon.ico +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/1be2f6345400afa38cfd6c919f2cf297 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/27c12eb9977c123bfb2ef83640964c02 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/35634bbec2c7419d3efa1a72c23db7e0 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/368329c663775348c7db5500ff959f80 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/371bf96e99717688ed7313a0c53f4212 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/510da110ae528e2d22533be39ff696c5 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/6fc757c2c8329244ca95d6909865bbc2 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/83de9c3d672e9a3420dd8a36aaaab517 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/371bf96e99717688ed7313a0c53f4212 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/6fc757c2c8329244ca95d6909865bbc2 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
- data/spec/factories/shibboleth_attributes.rb +28 -0
- data/spec/factories/users.rb +13 -0
- data/spec/models/user_spec.rb +46 -0
- data/spec/spec_helper.rb +32 -0
- metadata +320 -0
@@ -0,0 +1,58 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>The page you were looking for doesn't exist (404)</title>
|
5
|
+
<style>
|
6
|
+
body {
|
7
|
+
background-color: #EFEFEF;
|
8
|
+
color: #2E2F30;
|
9
|
+
text-align: center;
|
10
|
+
font-family: arial, sans-serif;
|
11
|
+
}
|
12
|
+
|
13
|
+
div.dialog {
|
14
|
+
width: 25em;
|
15
|
+
margin: 4em auto 0 auto;
|
16
|
+
border: 1px solid #CCC;
|
17
|
+
border-right-color: #999;
|
18
|
+
border-left-color: #999;
|
19
|
+
border-bottom-color: #BBB;
|
20
|
+
border-top: #B00100 solid 4px;
|
21
|
+
border-top-left-radius: 9px;
|
22
|
+
border-top-right-radius: 9px;
|
23
|
+
background-color: white;
|
24
|
+
padding: 7px 4em 0 4em;
|
25
|
+
}
|
26
|
+
|
27
|
+
h1 {
|
28
|
+
font-size: 100%;
|
29
|
+
color: #730E15;
|
30
|
+
line-height: 1.5em;
|
31
|
+
}
|
32
|
+
|
33
|
+
body > p {
|
34
|
+
width: 33em;
|
35
|
+
margin: 0 auto 1em;
|
36
|
+
padding: 1em 0;
|
37
|
+
background-color: #F7F7F7;
|
38
|
+
border: 1px solid #CCC;
|
39
|
+
border-right-color: #999;
|
40
|
+
border-bottom-color: #999;
|
41
|
+
border-bottom-left-radius: 4px;
|
42
|
+
border-bottom-right-radius: 4px;
|
43
|
+
border-top-color: #DADADA;
|
44
|
+
color: #666;
|
45
|
+
box-shadow:0 3px 8px rgba(50, 50, 50, 0.17);
|
46
|
+
}
|
47
|
+
</style>
|
48
|
+
</head>
|
49
|
+
|
50
|
+
<body>
|
51
|
+
<!-- This file lives in public/404.html -->
|
52
|
+
<div class="dialog">
|
53
|
+
<h1>The page you were looking for doesn't exist.</h1>
|
54
|
+
<p>You may have mistyped the address or the page may have moved.</p>
|
55
|
+
</div>
|
56
|
+
<p>If you are the application owner check the logs for more information.</p>
|
57
|
+
</body>
|
58
|
+
</html>
|
@@ -0,0 +1,58 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>The change you wanted was rejected (422)</title>
|
5
|
+
<style>
|
6
|
+
body {
|
7
|
+
background-color: #EFEFEF;
|
8
|
+
color: #2E2F30;
|
9
|
+
text-align: center;
|
10
|
+
font-family: arial, sans-serif;
|
11
|
+
}
|
12
|
+
|
13
|
+
div.dialog {
|
14
|
+
width: 25em;
|
15
|
+
margin: 4em auto 0 auto;
|
16
|
+
border: 1px solid #CCC;
|
17
|
+
border-right-color: #999;
|
18
|
+
border-left-color: #999;
|
19
|
+
border-bottom-color: #BBB;
|
20
|
+
border-top: #B00100 solid 4px;
|
21
|
+
border-top-left-radius: 9px;
|
22
|
+
border-top-right-radius: 9px;
|
23
|
+
background-color: white;
|
24
|
+
padding: 7px 4em 0 4em;
|
25
|
+
}
|
26
|
+
|
27
|
+
h1 {
|
28
|
+
font-size: 100%;
|
29
|
+
color: #730E15;
|
30
|
+
line-height: 1.5em;
|
31
|
+
}
|
32
|
+
|
33
|
+
body > p {
|
34
|
+
width: 33em;
|
35
|
+
margin: 0 auto 1em;
|
36
|
+
padding: 1em 0;
|
37
|
+
background-color: #F7F7F7;
|
38
|
+
border: 1px solid #CCC;
|
39
|
+
border-right-color: #999;
|
40
|
+
border-bottom-color: #999;
|
41
|
+
border-bottom-left-radius: 4px;
|
42
|
+
border-bottom-right-radius: 4px;
|
43
|
+
border-top-color: #DADADA;
|
44
|
+
color: #666;
|
45
|
+
box-shadow:0 3px 8px rgba(50, 50, 50, 0.17);
|
46
|
+
}
|
47
|
+
</style>
|
48
|
+
</head>
|
49
|
+
|
50
|
+
<body>
|
51
|
+
<!-- This file lives in public/422.html -->
|
52
|
+
<div class="dialog">
|
53
|
+
<h1>The change you wanted was rejected.</h1>
|
54
|
+
<p>Maybe you tried to change something you didn't have access to.</p>
|
55
|
+
</div>
|
56
|
+
<p>If you are the application owner check the logs for more information.</p>
|
57
|
+
</body>
|
58
|
+
</html>
|
@@ -0,0 +1,57 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>We're sorry, but something went wrong (500)</title>
|
5
|
+
<style>
|
6
|
+
body {
|
7
|
+
background-color: #EFEFEF;
|
8
|
+
color: #2E2F30;
|
9
|
+
text-align: center;
|
10
|
+
font-family: arial, sans-serif;
|
11
|
+
}
|
12
|
+
|
13
|
+
div.dialog {
|
14
|
+
width: 25em;
|
15
|
+
margin: 4em auto 0 auto;
|
16
|
+
border: 1px solid #CCC;
|
17
|
+
border-right-color: #999;
|
18
|
+
border-left-color: #999;
|
19
|
+
border-bottom-color: #BBB;
|
20
|
+
border-top: #B00100 solid 4px;
|
21
|
+
border-top-left-radius: 9px;
|
22
|
+
border-top-right-radius: 9px;
|
23
|
+
background-color: white;
|
24
|
+
padding: 7px 4em 0 4em;
|
25
|
+
}
|
26
|
+
|
27
|
+
h1 {
|
28
|
+
font-size: 100%;
|
29
|
+
color: #730E15;
|
30
|
+
line-height: 1.5em;
|
31
|
+
}
|
32
|
+
|
33
|
+
body > p {
|
34
|
+
width: 33em;
|
35
|
+
margin: 0 auto 1em;
|
36
|
+
padding: 1em 0;
|
37
|
+
background-color: #F7F7F7;
|
38
|
+
border: 1px solid #CCC;
|
39
|
+
border-right-color: #999;
|
40
|
+
border-bottom-color: #999;
|
41
|
+
border-bottom-left-radius: 4px;
|
42
|
+
border-bottom-right-radius: 4px;
|
43
|
+
border-top-color: #DADADA;
|
44
|
+
color: #666;
|
45
|
+
box-shadow:0 3px 8px rgba(50, 50, 50, 0.17);
|
46
|
+
}
|
47
|
+
</style>
|
48
|
+
</head>
|
49
|
+
|
50
|
+
<body>
|
51
|
+
<!-- This file lives in public/500.html -->
|
52
|
+
<div class="dialog">
|
53
|
+
<h1>We're sorry, but something went wrong.</h1>
|
54
|
+
</div>
|
55
|
+
<p>If you are the application owner check the logs for more information.</p>
|
56
|
+
</body>
|
57
|
+
</html>
|
File without changes
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -0,0 +1,28 @@
|
|
1
|
+
FactoryGirl.define do
|
2
|
+
factory :shibboleth_attributes, class: Hash do
|
3
|
+
displayName 'Test Guy'
|
4
|
+
mail { "#{umbcusername}@umbc.edu" }
|
5
|
+
umbcDepartment 'idunno'
|
6
|
+
umbcaffiliation 'student'
|
7
|
+
umbccampusid 'JJ01234'
|
8
|
+
umbclims '001203948209348'
|
9
|
+
umbcusername 'tguy1'
|
10
|
+
|
11
|
+
initialize_with { attributes }
|
12
|
+
end
|
13
|
+
|
14
|
+
# call with #with_indifferent_access to allow 'string keys'
|
15
|
+
# eg environment_hash["displayName"] #=> "Test Guy"
|
16
|
+
factory :environment_hash, class: Hash do
|
17
|
+
displayName 'Test Guy'
|
18
|
+
mail { "#{umbcusername}@umbc.edu" }
|
19
|
+
umbcDepartment 'idunno'
|
20
|
+
umbcaffiliation 'student'
|
21
|
+
umbccampusid 'JJ01234'
|
22
|
+
umbclims '001203948209348'
|
23
|
+
umbcusername 'tguy1'
|
24
|
+
other_environment_variable 'unwanted'
|
25
|
+
|
26
|
+
initialize_with { attributes }
|
27
|
+
end
|
28
|
+
end
|
@@ -0,0 +1,46 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
# testing main app User as a dummy
|
4
|
+
# for Shibbolite::User concern
|
5
|
+
describe User do
|
6
|
+
|
7
|
+
describe 'validations' do
|
8
|
+
|
9
|
+
context 'with nil group' do
|
10
|
+
subject { FactoryGirl.build(:user, :group => nil) }
|
11
|
+
it { should_not be_valid }
|
12
|
+
end
|
13
|
+
|
14
|
+
context 'with nil primary user id' do
|
15
|
+
subject { FactoryGirl.build(:user, Shibbolite.pid => nil) }
|
16
|
+
it { should_not be_valid }
|
17
|
+
end
|
18
|
+
|
19
|
+
context 'with group not listed in Shibbolite.groups' do
|
20
|
+
subject { FactoryGirl.build(:user, :group => 'lemur') }
|
21
|
+
it { should_not be_valid }
|
22
|
+
end
|
23
|
+
|
24
|
+
context 'username already in db' do
|
25
|
+
before { FactoryGirl.create(:user) }
|
26
|
+
subject { FactoryGirl.build(:user) }
|
27
|
+
it { should_not be_valid }
|
28
|
+
end
|
29
|
+
|
30
|
+
context 'with group and unique primary_user_id' do
|
31
|
+
it 'is valid' do
|
32
|
+
expect(FactoryGirl.build(:user)).to be_valid
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
36
|
+
|
37
|
+
describe '.find_user' do
|
38
|
+
|
39
|
+
let!(:user) { FactoryGirl.create(:user) }
|
40
|
+
let(:username) { user.read_attribute(Shibbolite.pid) }
|
41
|
+
|
42
|
+
it 'gets a user with matching primary user id from the database' do
|
43
|
+
expect(User.find_user(username)).to eq user
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,32 @@
|
|
1
|
+
ENV['RAILS_ENV'] ||= 'test'
|
2
|
+
|
3
|
+
require File.expand_path("../dummy/config/environment.rb", __FILE__)
|
4
|
+
require 'rspec/rails'
|
5
|
+
require 'rspec/autorun'
|
6
|
+
require 'factory_girl_rails'
|
7
|
+
require 'database_cleaner'
|
8
|
+
|
9
|
+
Rails.backtrace_cleaner.remove_silencers!
|
10
|
+
|
11
|
+
# Load support files
|
12
|
+
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
|
13
|
+
|
14
|
+
RSpec.configure do |config|
|
15
|
+
config.mock_with :rspec
|
16
|
+
config.use_transactional_fixtures = true
|
17
|
+
config.infer_base_class_for_anonymous_controllers = false
|
18
|
+
config.order = "random"
|
19
|
+
|
20
|
+
config.before(:suite) do
|
21
|
+
DatabaseCleaner.strategy = :transaction
|
22
|
+
DatabaseCleaner.clean_with(:truncation)
|
23
|
+
end
|
24
|
+
|
25
|
+
config.before(:each) do
|
26
|
+
DatabaseCleaner.start
|
27
|
+
end
|
28
|
+
|
29
|
+
config.after(:each) do
|
30
|
+
DatabaseCleaner.clean
|
31
|
+
end
|
32
|
+
end
|
metadata
ADDED
@@ -0,0 +1,320 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: shibbolite
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- David Bassett
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2014-04-15 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: rails
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ~>
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '4.0'
|
22
|
+
type: :runtime
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ~>
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '4.0'
|
30
|
+
- !ruby/object:Gem::Dependency
|
31
|
+
name: sqlite3
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
33
|
+
none: false
|
34
|
+
requirements:
|
35
|
+
- - ~>
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: '1.3'
|
38
|
+
type: :development
|
39
|
+
prerelease: false
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ~>
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: '1.3'
|
46
|
+
- !ruby/object:Gem::Dependency
|
47
|
+
name: rspec-rails
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
49
|
+
none: false
|
50
|
+
requirements:
|
51
|
+
- - ~>
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '2.14'
|
54
|
+
type: :development
|
55
|
+
prerelease: false
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
58
|
+
requirements:
|
59
|
+
- - ~>
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '2.14'
|
62
|
+
- !ruby/object:Gem::Dependency
|
63
|
+
name: factory_girl_rails
|
64
|
+
requirement: !ruby/object:Gem::Requirement
|
65
|
+
none: false
|
66
|
+
requirements:
|
67
|
+
- - ~>
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: '4.4'
|
70
|
+
type: :development
|
71
|
+
prerelease: false
|
72
|
+
version_requirements: !ruby/object:Gem::Requirement
|
73
|
+
none: false
|
74
|
+
requirements:
|
75
|
+
- - ~>
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: '4.4'
|
78
|
+
- !ruby/object:Gem::Dependency
|
79
|
+
name: guard-rspec
|
80
|
+
requirement: !ruby/object:Gem::Requirement
|
81
|
+
none: false
|
82
|
+
requirements:
|
83
|
+
- - ~>
|
84
|
+
- !ruby/object:Gem::Version
|
85
|
+
version: '4.2'
|
86
|
+
type: :development
|
87
|
+
prerelease: false
|
88
|
+
version_requirements: !ruby/object:Gem::Requirement
|
89
|
+
none: false
|
90
|
+
requirements:
|
91
|
+
- - ~>
|
92
|
+
- !ruby/object:Gem::Version
|
93
|
+
version: '4.2'
|
94
|
+
- !ruby/object:Gem::Dependency
|
95
|
+
name: fuubar
|
96
|
+
requirement: !ruby/object:Gem::Requirement
|
97
|
+
none: false
|
98
|
+
requirements:
|
99
|
+
- - ~>
|
100
|
+
- !ruby/object:Gem::Version
|
101
|
+
version: '1.3'
|
102
|
+
type: :development
|
103
|
+
prerelease: false
|
104
|
+
version_requirements: !ruby/object:Gem::Requirement
|
105
|
+
none: false
|
106
|
+
requirements:
|
107
|
+
- - ~>
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: '1.3'
|
110
|
+
- !ruby/object:Gem::Dependency
|
111
|
+
name: database_cleaner
|
112
|
+
requirement: !ruby/object:Gem::Requirement
|
113
|
+
none: false
|
114
|
+
requirements:
|
115
|
+
- - ~>
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '1.2'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
none: false
|
122
|
+
requirements:
|
123
|
+
- - ~>
|
124
|
+
- !ruby/object:Gem::Version
|
125
|
+
version: '1.2'
|
126
|
+
description: Simple access control for Shibboleth/Rails environments
|
127
|
+
email:
|
128
|
+
- dabassett.github@gmail.com
|
129
|
+
executables: []
|
130
|
+
extensions: []
|
131
|
+
extra_rdoc_files: []
|
132
|
+
files:
|
133
|
+
- app/concerns/shibbolite/user.rb
|
134
|
+
- app/concerns/shibbolite/filters.rb
|
135
|
+
- app/concerns/shibbolite/helpers.rb
|
136
|
+
- app/controllers/shibbolite/shibboleth_controller.rb
|
137
|
+
- app/views/layouts/shibbolite/shibboleth.html.erb
|
138
|
+
- app/views/shibbolite/shibboleth/logout_message.html.erb
|
139
|
+
- app/views/shibbolite/shibboleth/access_denied.html.erb
|
140
|
+
- config/routes.rb
|
141
|
+
- lib/generators/shibbolite/migration_generator.rb
|
142
|
+
- lib/generators/shibbolite/install_generator.rb
|
143
|
+
- lib/generators/templates/shibbolite_config.rb
|
144
|
+
- lib/shibbolite.rb
|
145
|
+
- lib/shibbolite/version.rb
|
146
|
+
- lib/shibbolite/engine.rb
|
147
|
+
- MIT-LICENSE
|
148
|
+
- Rakefile
|
149
|
+
- README.rdoc
|
150
|
+
- spec/dummy/log/development.log
|
151
|
+
- spec/dummy/log/test.log
|
152
|
+
- spec/dummy/config/initializers/wrap_parameters.rb
|
153
|
+
- spec/dummy/config/initializers/shibbolite_config.rb
|
154
|
+
- spec/dummy/config/initializers/session_store.rb
|
155
|
+
- spec/dummy/config/initializers/secret_token.rb
|
156
|
+
- spec/dummy/config/initializers/filter_parameter_logging.rb
|
157
|
+
- spec/dummy/config/environment.rb
|
158
|
+
- spec/dummy/config/boot.rb
|
159
|
+
- spec/dummy/config/database.yml
|
160
|
+
- spec/dummy/config/routes.rb
|
161
|
+
- spec/dummy/config/application.rb
|
162
|
+
- spec/dummy/config/environments/development.rb
|
163
|
+
- spec/dummy/config/environments/production.rb
|
164
|
+
- spec/dummy/config/environments/test.rb
|
165
|
+
- spec/dummy/Rakefile
|
166
|
+
- spec/dummy/bin/bundle
|
167
|
+
- spec/dummy/bin/rails
|
168
|
+
- spec/dummy/bin/rake
|
169
|
+
- spec/dummy/config.ru
|
170
|
+
- spec/dummy/app/controllers/application_controller.rb
|
171
|
+
- spec/dummy/app/controllers/filters_test_controller.rb
|
172
|
+
- spec/dummy/app/controllers/static_controller.rb
|
173
|
+
- spec/dummy/app/controllers/helpers_test_controller.rb
|
174
|
+
- spec/dummy/app/views/layouts/application.html.erb
|
175
|
+
- spec/dummy/app/views/helpers_test/dummy.html.erb
|
176
|
+
- spec/dummy/app/views/static/user_resource.html.erb
|
177
|
+
- spec/dummy/app/views/static/admin_resource.html.erb
|
178
|
+
- spec/dummy/app/views/static/home.html.erb
|
179
|
+
- spec/dummy/app/views/filters_test/dummy.html.erb
|
180
|
+
- spec/dummy/app/models/user.rb
|
181
|
+
- spec/dummy/app/assets/javascripts/application.js
|
182
|
+
- spec/dummy/app/assets/stylesheets/scaffold.css
|
183
|
+
- spec/dummy/app/assets/stylesheets/application.css
|
184
|
+
- spec/dummy/public/500.html
|
185
|
+
- spec/dummy/public/404.html
|
186
|
+
- spec/dummy/public/favicon.ico
|
187
|
+
- spec/dummy/public/422.html
|
188
|
+
- spec/dummy/db/migrate/20140414172304_add_shibboleth_attributes_to_users.rb
|
189
|
+
- spec/dummy/db/migrate/20140404162119_create_users.rb
|
190
|
+
- spec/dummy/db/schema.rb
|
191
|
+
- spec/dummy/db/test.sqlite3
|
192
|
+
- spec/dummy/db/development.sqlite3
|
193
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/510da110ae528e2d22533be39ff696c5
|
194
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/6fc757c2c8329244ca95d6909865bbc2
|
195
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/357970feca3ac29060c1e3861e2c0953
|
196
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/35634bbec2c7419d3efa1a72c23db7e0
|
197
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/d771ace226fc8215a3572e0aa35bb0d6
|
198
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/cffd775d018f68ce5dba1ee0d951a994
|
199
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/13fe41fee1fe35b49d145bcc06610705
|
200
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/371bf96e99717688ed7313a0c53f4212
|
201
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/368329c663775348c7db5500ff959f80
|
202
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/1be2f6345400afa38cfd6c919f2cf297
|
203
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/2f5173deea6c795b8fdde723bb4b63af
|
204
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/f7cbd26ba1d28d48de824f0e94586655
|
205
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/27c12eb9977c123bfb2ef83640964c02
|
206
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/83de9c3d672e9a3420dd8a36aaaab517
|
207
|
+
- spec/dummy/tmp/cache/assets/test/sprockets/6fc757c2c8329244ca95d6909865bbc2
|
208
|
+
- spec/dummy/tmp/cache/assets/test/sprockets/357970feca3ac29060c1e3861e2c0953
|
209
|
+
- spec/dummy/tmp/cache/assets/test/sprockets/d771ace226fc8215a3572e0aa35bb0d6
|
210
|
+
- spec/dummy/tmp/cache/assets/test/sprockets/cffd775d018f68ce5dba1ee0d951a994
|
211
|
+
- spec/dummy/tmp/cache/assets/test/sprockets/13fe41fee1fe35b49d145bcc06610705
|
212
|
+
- spec/dummy/tmp/cache/assets/test/sprockets/371bf96e99717688ed7313a0c53f4212
|
213
|
+
- spec/dummy/tmp/cache/assets/test/sprockets/2f5173deea6c795b8fdde723bb4b63af
|
214
|
+
- spec/dummy/tmp/cache/assets/test/sprockets/f7cbd26ba1d28d48de824f0e94586655
|
215
|
+
- spec/controllers/filters_test_controller_spec.rb
|
216
|
+
- spec/controllers/helpers_test_controller_spec.rb
|
217
|
+
- spec/controllers/static_controller_spec.rb
|
218
|
+
- spec/controllers/shibbolite/shibboleth_controller_spec.rb
|
219
|
+
- spec/factories/users.rb
|
220
|
+
- spec/factories/shibboleth_attributes.rb
|
221
|
+
- spec/models/user_spec.rb
|
222
|
+
- spec/spec_helper.rb
|
223
|
+
homepage: https://github.com/dabassett/shibbolite
|
224
|
+
licenses: []
|
225
|
+
post_install_message:
|
226
|
+
rdoc_options: []
|
227
|
+
require_paths:
|
228
|
+
- lib
|
229
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
230
|
+
none: false
|
231
|
+
requirements:
|
232
|
+
- - ! '>='
|
233
|
+
- !ruby/object:Gem::Version
|
234
|
+
version: 1.9.3
|
235
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
236
|
+
none: false
|
237
|
+
requirements:
|
238
|
+
- - ! '>='
|
239
|
+
- !ruby/object:Gem::Version
|
240
|
+
version: '0'
|
241
|
+
requirements: []
|
242
|
+
rubyforge_project:
|
243
|
+
rubygems_version: 1.8.25
|
244
|
+
signing_key:
|
245
|
+
specification_version: 3
|
246
|
+
summary: Simple access control for Shibboleth/Rails environments
|
247
|
+
test_files:
|
248
|
+
- spec/dummy/log/development.log
|
249
|
+
- spec/dummy/log/test.log
|
250
|
+
- spec/dummy/config/initializers/wrap_parameters.rb
|
251
|
+
- spec/dummy/config/initializers/shibbolite_config.rb
|
252
|
+
- spec/dummy/config/initializers/session_store.rb
|
253
|
+
- spec/dummy/config/initializers/secret_token.rb
|
254
|
+
- spec/dummy/config/initializers/filter_parameter_logging.rb
|
255
|
+
- spec/dummy/config/environment.rb
|
256
|
+
- spec/dummy/config/boot.rb
|
257
|
+
- spec/dummy/config/database.yml
|
258
|
+
- spec/dummy/config/routes.rb
|
259
|
+
- spec/dummy/config/application.rb
|
260
|
+
- spec/dummy/config/environments/development.rb
|
261
|
+
- spec/dummy/config/environments/production.rb
|
262
|
+
- spec/dummy/config/environments/test.rb
|
263
|
+
- spec/dummy/Rakefile
|
264
|
+
- spec/dummy/bin/bundle
|
265
|
+
- spec/dummy/bin/rails
|
266
|
+
- spec/dummy/bin/rake
|
267
|
+
- spec/dummy/config.ru
|
268
|
+
- spec/dummy/app/controllers/application_controller.rb
|
269
|
+
- spec/dummy/app/controllers/filters_test_controller.rb
|
270
|
+
- spec/dummy/app/controllers/static_controller.rb
|
271
|
+
- spec/dummy/app/controllers/helpers_test_controller.rb
|
272
|
+
- spec/dummy/app/views/layouts/application.html.erb
|
273
|
+
- spec/dummy/app/views/helpers_test/dummy.html.erb
|
274
|
+
- spec/dummy/app/views/static/user_resource.html.erb
|
275
|
+
- spec/dummy/app/views/static/admin_resource.html.erb
|
276
|
+
- spec/dummy/app/views/static/home.html.erb
|
277
|
+
- spec/dummy/app/views/filters_test/dummy.html.erb
|
278
|
+
- spec/dummy/app/models/user.rb
|
279
|
+
- spec/dummy/app/assets/javascripts/application.js
|
280
|
+
- spec/dummy/app/assets/stylesheets/scaffold.css
|
281
|
+
- spec/dummy/app/assets/stylesheets/application.css
|
282
|
+
- spec/dummy/public/500.html
|
283
|
+
- spec/dummy/public/404.html
|
284
|
+
- spec/dummy/public/favicon.ico
|
285
|
+
- spec/dummy/public/422.html
|
286
|
+
- spec/dummy/db/migrate/20140414172304_add_shibboleth_attributes_to_users.rb
|
287
|
+
- spec/dummy/db/migrate/20140404162119_create_users.rb
|
288
|
+
- spec/dummy/db/schema.rb
|
289
|
+
- spec/dummy/db/test.sqlite3
|
290
|
+
- spec/dummy/db/development.sqlite3
|
291
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/510da110ae528e2d22533be39ff696c5
|
292
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/6fc757c2c8329244ca95d6909865bbc2
|
293
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/357970feca3ac29060c1e3861e2c0953
|
294
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/35634bbec2c7419d3efa1a72c23db7e0
|
295
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/d771ace226fc8215a3572e0aa35bb0d6
|
296
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/cffd775d018f68ce5dba1ee0d951a994
|
297
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/13fe41fee1fe35b49d145bcc06610705
|
298
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/371bf96e99717688ed7313a0c53f4212
|
299
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/368329c663775348c7db5500ff959f80
|
300
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/1be2f6345400afa38cfd6c919f2cf297
|
301
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/2f5173deea6c795b8fdde723bb4b63af
|
302
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/f7cbd26ba1d28d48de824f0e94586655
|
303
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/27c12eb9977c123bfb2ef83640964c02
|
304
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/83de9c3d672e9a3420dd8a36aaaab517
|
305
|
+
- spec/dummy/tmp/cache/assets/test/sprockets/6fc757c2c8329244ca95d6909865bbc2
|
306
|
+
- spec/dummy/tmp/cache/assets/test/sprockets/357970feca3ac29060c1e3861e2c0953
|
307
|
+
- spec/dummy/tmp/cache/assets/test/sprockets/d771ace226fc8215a3572e0aa35bb0d6
|
308
|
+
- spec/dummy/tmp/cache/assets/test/sprockets/cffd775d018f68ce5dba1ee0d951a994
|
309
|
+
- spec/dummy/tmp/cache/assets/test/sprockets/13fe41fee1fe35b49d145bcc06610705
|
310
|
+
- spec/dummy/tmp/cache/assets/test/sprockets/371bf96e99717688ed7313a0c53f4212
|
311
|
+
- spec/dummy/tmp/cache/assets/test/sprockets/2f5173deea6c795b8fdde723bb4b63af
|
312
|
+
- spec/dummy/tmp/cache/assets/test/sprockets/f7cbd26ba1d28d48de824f0e94586655
|
313
|
+
- spec/controllers/filters_test_controller_spec.rb
|
314
|
+
- spec/controllers/helpers_test_controller_spec.rb
|
315
|
+
- spec/controllers/static_controller_spec.rb
|
316
|
+
- spec/controllers/shibbolite/shibboleth_controller_spec.rb
|
317
|
+
- spec/factories/users.rb
|
318
|
+
- spec/factories/shibboleth_attributes.rb
|
319
|
+
- spec/models/user_spec.rb
|
320
|
+
- spec/spec_helper.rb
|