libsaml 3.9.2 → 3.9.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/saml/bindings/http_redirect.rb +5 -0
- data/lib/saml/provider.rb +2 -0
- data/lib/saml/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 52056387172170f48159a403ea8ccd8adccdd4f3bf2f1dbdc104a8034f71d0c0
|
4
|
+
data.tar.gz: bc0f3ca0dd6b47297af36255f9309b1d5b636a322289825d6ac8556321ed2ad9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dd18ec249485cee4a1d71aceaa4ea9bd0acb248182fc53f9df7969bd6fcdccb161f5870187ce23bfb748f2879dc5ed17d7a1f14bd939136cf49669e1f6b73ca4
|
7
|
+
data.tar.gz: fb87df8c97c301ac2af52102242f47bd129e4f9bcc617634810f93efac6176dd37f39832cd4b0040fbf5ccf2f171636fcca3e9e1a2436ddbf5f106872469c93a
|
@@ -14,6 +14,11 @@ module Saml
|
|
14
14
|
options[:signature_algorithm] = http_request.params["SigAlg"]
|
15
15
|
options[:relay_state] = http_request.params["RelayState"]
|
16
16
|
|
17
|
+
receive_xml = http_request.params["SAMLRequest"] || http_request.params["SAMLResponse"]
|
18
|
+
if receive_xml.nil?
|
19
|
+
raise Saml::Errors::InvalidParams, 'require params `SAMLRequest` or `SAMLResponse`'
|
20
|
+
end
|
21
|
+
|
17
22
|
request_or_response = parse_request_or_response(options.delete(:type), http_request.params)
|
18
23
|
|
19
24
|
redirect_binding = new(request_or_response, options)
|
data/lib/saml/provider.rb
CHANGED
@@ -105,6 +105,8 @@ module Saml
|
|
105
105
|
def digest_method(signature_algorithm)
|
106
106
|
digest = signature_algorithm && signature_algorithm =~ /sha(.*?)$/i && $1.to_i
|
107
107
|
case digest
|
108
|
+
when 512 then
|
109
|
+
OpenSSL::Digest::SHA512
|
108
110
|
when 256 then
|
109
111
|
OpenSSL::Digest::SHA256
|
110
112
|
else
|
data/lib/saml/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: libsaml
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.9.
|
4
|
+
version: 3.9.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Benoist Claassen
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-06-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -240,7 +240,7 @@ homepage: https://www.digidentity.eu
|
|
240
240
|
licenses:
|
241
241
|
- MIT
|
242
242
|
metadata: {}
|
243
|
-
post_install_message:
|
243
|
+
post_install_message:
|
244
244
|
rdoc_options: []
|
245
245
|
require_paths:
|
246
246
|
- lib
|
@@ -255,8 +255,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
255
255
|
- !ruby/object:Gem::Version
|
256
256
|
version: '0'
|
257
257
|
requirements: []
|
258
|
-
rubygems_version: 3.
|
259
|
-
signing_key:
|
258
|
+
rubygems_version: 3.1.4
|
259
|
+
signing_key:
|
260
260
|
specification_version: 4
|
261
261
|
summary: A gem to easily create SAML 2.0 messages.
|
262
262
|
test_files: []
|