devise_saml_authenticatable 1.6.3 → 1.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.github/workflows/ci.yml +52 -0
- data/.gitignore +1 -0
- data/.ruby-version +1 -0
- data/Gemfile +12 -2
- data/README.md +56 -20
- data/app/controllers/devise/saml_sessions_controller.rb +33 -27
- data/lib/devise_saml_authenticatable/logger.rb +2 -2
- data/lib/devise_saml_authenticatable/model.rb +8 -2
- data/lib/devise_saml_authenticatable/saml_config.rb +10 -4
- data/lib/devise_saml_authenticatable/strategy.rb +23 -5
- data/lib/devise_saml_authenticatable/version.rb +1 -1
- data/lib/devise_saml_authenticatable.rb +14 -0
- data/spec/controllers/devise/saml_sessions_controller_spec.rb +205 -147
- data/spec/devise_saml_authenticatable/model_spec.rb +118 -0
- data/spec/devise_saml_authenticatable/saml_config_spec.rb +64 -17
- data/spec/devise_saml_authenticatable/strategy_spec.rb +57 -8
- data/spec/features/saml_authentication_spec.rb +17 -4
- data/spec/support/Gemfile.rails5.2 +2 -13
- data/spec/support/Gemfile.rails6 +18 -0
- data/spec/support/Gemfile.rails6.1 +24 -0
- data/spec/support/idp_settings_adapter.rb.erb +19 -9
- data/spec/support/idp_template.rb +5 -13
- data/spec/support/rails_app.rb +6 -7
- data/spec/support/ruby_saml_support.rb +10 -0
- data/spec/support/saml_idp_controller.rb.erb +1 -6
- data/spec/support/sp_template.rb +20 -17
- metadata +11 -10
- data/.travis.yml +0 -52
- data/spec/support/Gemfile.rails4 +0 -41
- data/spec/support/Gemfile.rails5 +0 -25
- data/spec/support/Gemfile.rails5.1 +0 -25
data/.travis.yml
DELETED
@@ -1,52 +0,0 @@
|
|
1
|
-
language: ruby
|
2
|
-
rvm:
|
3
|
-
- "2.0.0"
|
4
|
-
- "2.1.10"
|
5
|
-
- "2.2.10"
|
6
|
-
- "2.3.8"
|
7
|
-
- "2.4.10"
|
8
|
-
- "2.5.8"
|
9
|
-
- "2.6.6"
|
10
|
-
- "2.7.1"
|
11
|
-
gemfile:
|
12
|
-
- Gemfile
|
13
|
-
- spec/support/Gemfile.rails5.2
|
14
|
-
- spec/support/Gemfile.rails5.1
|
15
|
-
- spec/support/Gemfile.rails5
|
16
|
-
- spec/support/Gemfile.rails4
|
17
|
-
matrix:
|
18
|
-
allow_failures:
|
19
|
-
- rvm: "2.0.0"
|
20
|
-
gemfile: Gemfile
|
21
|
-
- rvm: "2.0.0"
|
22
|
-
gemfile: spec/support/Gemfile.rails5
|
23
|
-
- rvm: "2.0.0"
|
24
|
-
gemfile: spec/support/Gemfile.rails5.1
|
25
|
-
- rvm: "2.0.0"
|
26
|
-
gemfile: spec/support/Gemfile.rails5.2
|
27
|
-
- rvm: "2.1.10"
|
28
|
-
gemfile: Gemfile
|
29
|
-
- rvm: "2.1.10"
|
30
|
-
gemfile: spec/support/Gemfile.rails5
|
31
|
-
- rvm: "2.1.10"
|
32
|
-
gemfile: spec/support/Gemfile.rails5.1
|
33
|
-
- rvm: "2.1.10"
|
34
|
-
gemfile: spec/support/Gemfile.rails5.2
|
35
|
-
- rvm: "2.2.10"
|
36
|
-
gemfile: Gemfile
|
37
|
-
- rvm: "2.2.10"
|
38
|
-
gemfile: spec/support/Gemfile.rails5.2
|
39
|
-
- rvm: "2.3.8"
|
40
|
-
gemfile: Gemfile
|
41
|
-
- rvm: "2.4.10"
|
42
|
-
gemfile: Gemfile
|
43
|
-
- rvm: "2.6.6"
|
44
|
-
gemfile: spec/support/Gemfile.rails4
|
45
|
-
- rvm: "2.7.1"
|
46
|
-
gemfile: spec/support/Gemfile.rails4
|
47
|
-
|
48
|
-
before_install:
|
49
|
-
- command -v bundle || gem install bundler -v '~> 1.17.3'
|
50
|
-
|
51
|
-
script:
|
52
|
-
- bundle exec rake
|
data/spec/support/Gemfile.rails4
DELETED
@@ -1,41 +0,0 @@
|
|
1
|
-
source 'https://rubygems.org'
|
2
|
-
|
3
|
-
# Specify your gem's dependencies in devise_saml_authenticatable.gemspec
|
4
|
-
gemspec path: '../..'
|
5
|
-
|
6
|
-
group :test do
|
7
|
-
gem 'rspec', '~> 3.0'
|
8
|
-
gem 'rails', '~> 4.0'
|
9
|
-
gem 'rspec-rails', '~> 3.9'
|
10
|
-
gem 'sqlite3', '~> 1.3.6'
|
11
|
-
gem 'capybara'
|
12
|
-
gem 'poltergeist'
|
13
|
-
|
14
|
-
# Lock down versions of gems for older versions of Ruby
|
15
|
-
if Gem::Version.new(RUBY_VERSION.dup) < Gem::Version.new("2.1")
|
16
|
-
gem 'rake', '~> 12.2'
|
17
|
-
else
|
18
|
-
gem 'rake'
|
19
|
-
end
|
20
|
-
|
21
|
-
if Gem::Version.new(RUBY_VERSION.dup) < Gem::Version.new("2.1")
|
22
|
-
gem 'devise', '~> 3.5'
|
23
|
-
gem 'minitest', '~> 5.11.0'
|
24
|
-
gem 'nokogiri', '~> 1.6.8'
|
25
|
-
gem 'public_suffix', '~> 2.0.5'
|
26
|
-
end
|
27
|
-
|
28
|
-
if Gem::Version.new(RUBY_VERSION.dup) < Gem::Version.new("2.1")
|
29
|
-
gem 'responders', '~> 1.0'
|
30
|
-
elsif Gem::Version.new(RUBY_VERSION.dup) < Gem::Version.new("2.4")
|
31
|
-
gem 'responders', '~> 2.0'
|
32
|
-
end
|
33
|
-
|
34
|
-
if Gem::Version.new(RUBY_VERSION.dup) < Gem::Version.new("2.2")
|
35
|
-
gem 'byebug', '~> 9.0'
|
36
|
-
elsif Gem::Version.new(RUBY_VERSION.dup) < Gem::Version.new("2.3")
|
37
|
-
gem 'byebug', '~> 10.0'
|
38
|
-
elsif Gem::Version.new(RUBY_VERSION.dup) < Gem::Version.new("2.4")
|
39
|
-
gem 'byebug', '~> 11.0.0'
|
40
|
-
end
|
41
|
-
end
|
data/spec/support/Gemfile.rails5
DELETED
@@ -1,25 +0,0 @@
|
|
1
|
-
source 'https://rubygems.org'
|
2
|
-
|
3
|
-
# Specify your gem's dependencies in devise_saml_authenticatable.gemspec
|
4
|
-
gemspec path: '../..'
|
5
|
-
|
6
|
-
group :test do
|
7
|
-
gem 'rake'
|
8
|
-
gem 'rspec', '~> 3.0'
|
9
|
-
gem 'rails', '~> 5.0.0'
|
10
|
-
gem 'rspec-rails', '~> 3.9'
|
11
|
-
gem 'sqlite3', '~> 1.3.6'
|
12
|
-
gem 'capybara'
|
13
|
-
gem 'poltergeist'
|
14
|
-
|
15
|
-
# Lock down versions of gems for older versions of Ruby
|
16
|
-
if Gem::Version.new(RUBY_VERSION.dup) < Gem::Version.new("2.4")
|
17
|
-
gem 'responders', '~> 2.4'
|
18
|
-
end
|
19
|
-
|
20
|
-
if Gem::Version.new(RUBY_VERSION.dup) < Gem::Version.new("2.3")
|
21
|
-
gem 'byebug', '~> 10.0'
|
22
|
-
elsif Gem::Version.new(RUBY_VERSION.dup) < Gem::Version.new("2.4")
|
23
|
-
gem 'byebug', '~> 11.0.0'
|
24
|
-
end
|
25
|
-
end
|
@@ -1,25 +0,0 @@
|
|
1
|
-
source 'https://rubygems.org'
|
2
|
-
|
3
|
-
# Specify your gem's dependencies in devise_saml_authenticatable.gemspec
|
4
|
-
gemspec path: '../..'
|
5
|
-
|
6
|
-
group :test do
|
7
|
-
gem 'rake'
|
8
|
-
gem 'rspec', '~> 3.0'
|
9
|
-
gem 'rails', '~> 5.1.0'
|
10
|
-
gem 'rspec-rails', '~> 3.9'
|
11
|
-
gem 'sqlite3', '~> 1.3.6'
|
12
|
-
gem 'capybara'
|
13
|
-
gem 'poltergeist'
|
14
|
-
|
15
|
-
# Lock down versions of gems for older versions of Ruby
|
16
|
-
if Gem::Version.new(RUBY_VERSION.dup) < Gem::Version.new("2.4")
|
17
|
-
gem 'responders', '~> 2.4'
|
18
|
-
end
|
19
|
-
|
20
|
-
if Gem::Version.new(RUBY_VERSION.dup) < Gem::Version.new("2.3")
|
21
|
-
gem 'byebug', '~> 10.0'
|
22
|
-
elsif Gem::Version.new(RUBY_VERSION.dup) < Gem::Version.new("2.4")
|
23
|
-
gem 'byebug', '~> 11.0.0'
|
24
|
-
end
|
25
|
-
end
|