rack_entra_id_auth 1.1.0 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 86ee586f830d9d44c654338d677e88932c35aea1f5e1d73386ba91cab852f181
4
- data.tar.gz: 3a60ec97200adad56e8306b2fbafa27efacf90696f847e05bd323fd5500feadb
3
+ metadata.gz: 1203180f536c61e3f893d7b94beab66c2769c22979daf217421ef11e6d07a9d9
4
+ data.tar.gz: 4815b5403b5d113460246780faed0f4925216002099da173f24348075a901a91
5
5
  SHA512:
6
- metadata.gz: 5075ceb0dea5b90f6379669d8b1929d3053fd0563c3b146f0ee89623b80ab2a96d869e8d17862db3c560702244b0bcd2f85ece39c72d1b26567acc65e924ed80
7
- data.tar.gz: 53b2daf93998839ce2412a037760ee2fa3161d596c690f2f6adc1bed7d8432affb6b5d20833be38a5eb6925692fc5908954021216c6140740db8b8c2fc344a15
6
+ metadata.gz: aaa60faf6eac7b26d71426f88bfaf46a088134fbe71e3dab4d8f929172f5847e1c422690ce190f910693acbbc87b42a7d7245ef1832aeef583ff400ab54b96ed
7
+ data.tar.gz: 76f7a00c6a86fe63e7c78f69f26457b07fe3eee61674923b6ee4a3935dd3bf721e9267678326fe8377e0dc4b3ca2c8578d3d6ee3190f1b25726c644e1932f4aa
@@ -64,6 +64,12 @@ module RackEntraIdAuth
64
64
  }
65
65
  config_accessor :skip_single_logout, default: true
66
66
 
67
+ def configuration_options (configuration_options = {})
68
+ configuration_options.slice(:metadata_url, *RUBY_SAML_SETTINGS).each do |key, value|
69
+ self.send("#{key}=", value) unless value.nil?
70
+ end
71
+ end
72
+
67
73
  def metadata_url
68
74
  @metadata_url
69
75
  end
@@ -71,13 +77,10 @@ module RackEntraIdAuth
71
77
  def metadata_url= (metadata_url)
72
78
  @metadata_url = metadata_url
73
79
 
74
- remote_hash = OneLogin::RubySaml::IdpMetadataParser.new.parse_remote_to_hash(metadata_url)
75
-
76
- RUBY_SAML_SETTINGS.each do |ruby_saml_setting|
77
- remote_value = remote_hash[ruby_saml_setting]
78
-
79
- self.send("#{ruby_saml_setting}=", remote_value) unless remote_value.nil?
80
- end
80
+ OneLogin::RubySaml::IdpMetadataParser.new.parse_remote_to_hash(metadata_url)
81
+ .slice(*RUBY_SAML_SETTINGS).each do |key, value|
82
+ self.send("#{key}=", value) unless value.nil?
83
+ end
81
84
 
82
85
  @metadata_url
83
86
  end
@@ -1,3 +1,3 @@
1
1
  module RackEntraIdAuth
2
- VERSION = '1.1.0'
2
+ VERSION = '1.2.0'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack_entra_id_auth
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Susco
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-08-05 00:00:00.000000000 Z
11
+ date: 2024-08-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -119,7 +119,7 @@ licenses:
119
119
  - MIT
120
120
  metadata:
121
121
  bug_tracker_uri: https://github.com/dsusco/rack_entra_id_auth/issues
122
- changelog_uri: https://github.com/dsusco/rack_entra_id_auth/releases/tag/v1.1.0
122
+ changelog_uri: https://github.com/dsusco/rack_entra_id_auth/releases/tag/v1.2.0
123
123
  homepage_uri: https://github.com/dsusco/rack_entra_id_auth
124
124
  source_code_uri: https://github.com/dsusco/rack_entra_id_auth
125
125
  post_install_message: