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 +4 -4
- data/lib/rack_entra_id_auth/configuration.rb +10 -7
- data/lib/rack_entra_id_auth/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1203180f536c61e3f893d7b94beab66c2769c22979daf217421ef11e6d07a9d9
|
4
|
+
data.tar.gz: 4815b5403b5d113460246780faed0f4925216002099da173f24348075a901a91
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
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
|
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.
|
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-
|
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.
|
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:
|