omniauth-saml 1.3.0 → 1.3.1
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/lib/omniauth-saml/version.rb +1 -1
- data/lib/omniauth/strategies/saml.rb +1 -0
- data/spec/omniauth/strategies/saml_spec.rb +4 -2
- metadata +4 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6138bffe319117124ead7fa5f3214d473f42ee56
|
|
4
|
+
data.tar.gz: 7b52115592c3a2352dab848ce4c4b3b234e0a2a8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c1b79f1c4f22ef5e7e0b87bb59ed3c8f425d7415496c5f11a65d79aa492b994d837719b0209b1926b71c8e7db1447cb04fe9b43c437bb5b014dae32a358f61da
|
|
7
|
+
data.tar.gz: 636bf81fbe962eb3f9dfd9ce236e13df3b93c6bc6a069524e7c80fa636702ef85aa44265af329fc22e35b318eeb646232a02d5144af8f8e7ef07bad5bf6b9830
|
|
@@ -41,6 +41,7 @@ module OmniAuth
|
|
|
41
41
|
|
|
42
42
|
response = OneLogin::RubySaml::Response.new(request.params['SAMLResponse'], options)
|
|
43
43
|
response.settings = OneLogin::RubySaml::Settings.new(options)
|
|
44
|
+
response.attributes['fingerprint'] = options.idp_cert_fingerprint
|
|
44
45
|
|
|
45
46
|
@name_id = response.name_id
|
|
46
47
|
@attributes = response.attributes
|
|
@@ -79,7 +79,8 @@ describe OmniAuth::Strategies::SAML, :type => :strategy do
|
|
|
79
79
|
'first_name' => 'Rajiv',
|
|
80
80
|
'last_name' => 'Manglani',
|
|
81
81
|
'email' => 'user@example.com',
|
|
82
|
-
'company_name' => 'Example Company'
|
|
82
|
+
'company_name' => 'Example Company',
|
|
83
|
+
'fingerprint' => saml_options[:idp_cert_fingerprint]
|
|
83
84
|
}
|
|
84
85
|
end
|
|
85
86
|
end
|
|
@@ -100,7 +101,8 @@ describe OmniAuth::Strategies::SAML, :type => :strategy do
|
|
|
100
101
|
'first_name' => 'Rajiv',
|
|
101
102
|
'last_name' => 'Manglani',
|
|
102
103
|
'email' => 'user@example.com',
|
|
103
|
-
'company_name' => 'Example Company'
|
|
104
|
+
'company_name' => 'Example Company',
|
|
105
|
+
'fingerprint' => 'C1:59:74:2B:E8:0C:6C:A9:41:0F:6E:83:F6:D1:52:25:45:58:89:FB'
|
|
104
106
|
}
|
|
105
107
|
end
|
|
106
108
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: omniauth-saml
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.3.
|
|
4
|
+
version: 1.3.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Raecoo Cao
|
|
@@ -13,7 +13,7 @@ authors:
|
|
|
13
13
|
autorequire:
|
|
14
14
|
bindir: bin
|
|
15
15
|
cert_chain: []
|
|
16
|
-
date: 2015-02
|
|
16
|
+
date: 2015-03-02 00:00:00.000000000 Z
|
|
17
17
|
dependencies:
|
|
18
18
|
- !ruby/object:Gem::Dependency
|
|
19
19
|
name: omniauth
|
|
@@ -119,10 +119,11 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
119
119
|
version: '0'
|
|
120
120
|
requirements: []
|
|
121
121
|
rubyforge_project:
|
|
122
|
-
rubygems_version: 2.
|
|
122
|
+
rubygems_version: 2.4.1
|
|
123
123
|
signing_key:
|
|
124
124
|
specification_version: 4
|
|
125
125
|
summary: A generic SAML strategy for OmniAuth.
|
|
126
126
|
test_files:
|
|
127
127
|
- spec/omniauth/strategies/saml_spec.rb
|
|
128
128
|
- spec/spec_helper.rb
|
|
129
|
+
has_rdoc:
|