Skip to content

Commit cfd929e

Browse files
committed
testing
1 parent a65d360 commit cfd929e

7 files changed

Lines changed: 14 additions & 5 deletions

File tree

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ gem 'ruby-saml', git: 'https://github.com/SAML-Toolkits/ruby-saml.git', branch:
88
group :test do
99
gem 'rake'
1010
gem 'rspec', '~> 3.0'
11-
gem 'rails', '~> 8.0.0'
11+
gem 'rails', '~> 7.1'
1212
gem 'rspec-rails'
1313
gem 'sqlite3', '~> 2.6.0'
1414
gem 'capybara'

lib/devise_saml_authenticatable.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ class Engine < Rails::Engine
2020
end
2121
end
2222

23+
if !defined?(::RubySaml) && defined?(::OneLogin::RubySaml)
24+
::RubySaml = ::OneLogin::RubySaml
25+
end
26+
2327
# Get saml information from config/saml.yml now
2428
module Devise
2529
# Allow route customization to avoid collision

spec/support/Gemfile.rails7.1

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ source 'https://rubygems.org'
33
# Specify your gem's dependencies in devise_saml_authenticatable.gemspec
44
gemspec path: '../..'
55

6+
gem 'ruby-saml', git: 'https://github.com/SAML-Toolkits/ruby-saml.git', branch: 'v2.x'
7+
68
group :test do
79
gem 'rake'
810
gem 'rspec', '~> 3.0'

spec/support/Gemfile.rails7.2

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ source 'https://rubygems.org'
33
# Specify your gem's dependencies in devise_saml_authenticatable.gemspec
44
gemspec path: '../..'
55

6+
gem 'ruby-saml', git: 'https://github.com/SAML-Toolkits/ruby-saml.git', branch: 'v2.x'
7+
68
group :test do
79
gem 'rake'
810
gem 'rspec', '~> 3.0'

spec/support/Gemfile.rails8.0

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ source 'https://rubygems.org'
33
# Specify your gem's dependencies in devise_saml_authenticatable.gemspec
44
gemspec path: '../..'
55

6+
gem 'ruby-saml', git: 'https://github.com/SAML-Toolkits/ruby-saml.git', branch: 'v2.x'
7+
68
group :test do
79
gem 'rake'
810
gem 'rspec', '~> 3.0'

spec/support/rails_app.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
require "timeout"
55
require "bundler/setup"
66
require "bundler/gem_tasks"
7+
require "ruby-saml"
78

89
APP_READY_TIMEOUT ||= 30
910

spec/support/sp_template.rb

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,15 @@
11
# Set up a SAML Service Provider
22

3-
require "ruby-saml/version"
4-
53
attribute_map_resolver = ENV.fetch("ATTRIBUTE_MAP_RESOLVER", "nil")
64
saml_session_index_key = ENV.fetch('SAML_SESSION_INDEX_KEY', ":session_index")
75
use_subject_to_authenticate = ENV.fetch('USE_SUBJECT_TO_AUTHENTICATE')
86
idp_settings_adapter = ENV.fetch('IDP_SETTINGS_ADAPTER', "nil")
97
idp_entity_id_reader = ENV.fetch('IDP_ENTITY_ID_READER', '"DeviseSamlAuthenticatable::DefaultIdpEntityIdReader"')
108
saml_failed_callback = ENV.fetch('SAML_FAILED_CALLBACK', "nil")
11-
ruby_saml_version = ENV.fetch("RUBY_SAML_VERSION")
9+
ruby_saml_version = ENV.fetch("RUBY_SAML_VERSION", "2.0.0")
1210

1311
gem 'devise_saml_authenticatable', path: File.expand_path("../../..", __FILE__)
14-
gem 'ruby-saml', ruby_saml_version
12+
gem 'ruby-saml', git: 'https://github.com/SAML-Toolkits/ruby-saml.git', branch: 'v2.x'
1513
gem 'net-smtp', require: false
1614
gem 'net-imap', require: false
1715
gem 'net-pop', require: false

0 commit comments

Comments
 (0)