omniauth-saml 1.8.1 → 1.9.0
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of omniauth-saml might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/CHANGELOG.md +9 -0
- data/lib/omniauth-saml/version.rb +1 -1
- data/spec/omniauth/strategies/saml_spec.rb +28 -0
- metadata +9 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a3895e66de86a36af32ed2a4307562e1d549d69a
|
4
|
+
data.tar.gz: 413848e6bdb2dc31758a1b60f5aeae811afb9b2c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f27b3b76a2859c680bdc446b0f678616b43cd2d2e1896bba9297d673e00689c25e55170b1f2a4ea021653704bff92f7885df322518100431c3ac50ef97271782
|
7
|
+
data.tar.gz: 0f0e9056f26ff234e92e000c9a360e12038b8c25e7ae56599eda22b7eb06a8434befbe85ec564d388d9fb0396f3b329db7e66c9bb69ff70afc3ff5bcfa008350
|
data/CHANGELOG.md
CHANGED
@@ -87,6 +87,34 @@ describe OmniAuth::Strategies::SAML, :type => :strategy do
|
|
87
87
|
end
|
88
88
|
end
|
89
89
|
end
|
90
|
+
|
91
|
+
context 'when authn request signing is requested' do
|
92
|
+
subject { get '/auth/saml' }
|
93
|
+
|
94
|
+
let(:private_key) { OpenSSL::PKey::RSA.new 2048 }
|
95
|
+
|
96
|
+
before do
|
97
|
+
saml_options[:compress_request] = false
|
98
|
+
|
99
|
+
saml_options[:private_key] = private_key.to_pem
|
100
|
+
saml_options[:security] = {
|
101
|
+
authn_requests_signed: true,
|
102
|
+
signature_method: XMLSecurity::Document::RSA_SHA256
|
103
|
+
}
|
104
|
+
end
|
105
|
+
|
106
|
+
it 'should sign the request' do
|
107
|
+
is_expected.to be_redirect
|
108
|
+
|
109
|
+
location = URI.parse(last_response.location)
|
110
|
+
query = Rack::Utils.parse_query location.query
|
111
|
+
expect(query).to have_key('SAMLRequest')
|
112
|
+
expect(query).to have_key('Signature')
|
113
|
+
expect(query).to have_key('SigAlg')
|
114
|
+
|
115
|
+
expect(query['SigAlg']).to eq XMLSecurity::Document::RSA_SHA256
|
116
|
+
end
|
117
|
+
end
|
90
118
|
end
|
91
119
|
|
92
120
|
describe 'POST /auth/saml/callback' do
|
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.
|
4
|
+
version: 1.9.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Raecoo Cao
|
@@ -14,7 +14,7 @@ authors:
|
|
14
14
|
autorequire:
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
|
-
date:
|
17
|
+
date: 2018-01-31 00:00:00.000000000 Z
|
18
18
|
dependencies:
|
19
19
|
- !ruby/object:Gem::Dependency
|
20
20
|
name: omniauth
|
@@ -23,6 +23,9 @@ dependencies:
|
|
23
23
|
- - "~>"
|
24
24
|
- !ruby/object:Gem::Version
|
25
25
|
version: '1.3'
|
26
|
+
- - ">="
|
27
|
+
- !ruby/object:Gem::Version
|
28
|
+
version: 1.3.2
|
26
29
|
type: :runtime
|
27
30
|
prerelease: false
|
28
31
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -30,6 +33,9 @@ dependencies:
|
|
30
33
|
- - "~>"
|
31
34
|
- !ruby/object:Gem::Version
|
32
35
|
version: '1.3'
|
36
|
+
- - ">="
|
37
|
+
- !ruby/object:Gem::Version
|
38
|
+
version: 1.3.2
|
33
39
|
- !ruby/object:Gem::Dependency
|
34
40
|
name: ruby-saml
|
35
41
|
requirement: !ruby/object:Gem::Requirement
|
@@ -172,5 +178,5 @@ signing_key:
|
|
172
178
|
specification_version: 4
|
173
179
|
summary: A generic SAML strategy for OmniAuth.
|
174
180
|
test_files:
|
175
|
-
- spec/omniauth/strategies/saml_spec.rb
|
176
181
|
- spec/spec_helper.rb
|
182
|
+
- spec/omniauth/strategies/saml_spec.rb
|