libsaml 2.23.2 → 2.24.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/Rakefile +3 -4
- data/lib/saml/assertion.rb +3 -2
- data/lib/saml/bindings/http_post.rb +10 -1
- data/lib/saml/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 978c7945916eeeb8a64b98ed8075bbc1ff0be77f
|
4
|
+
data.tar.gz: e92a5cdb687036239aa575dd5f0aba02c480d2f0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1fbfff4212a08c57edeafaa326581c5436942cd48723a7c9392facb73a82710b0cefe2e99dabab8b4c897d28b3470ba2cdbb3bdffe070a5864285c87c4019f89
|
7
|
+
data.tar.gz: da512d78df5a92a163fef860a1146830b9380d58d75dec6e976963eff0935b31bbf6c34351706facb3ea037fb0028ac314a9f67560ba89987443a9914745d36a
|
data/README.md
CHANGED
@@ -159,7 +159,7 @@ class SamlController < ActionController::Base
|
|
159
159
|
authn_request = if request.get?
|
160
160
|
Saml::Bindings::HTTPRedirect.receive_message(request, type: :authn_request)
|
161
161
|
elsif request.post?
|
162
|
-
Saml::Bindings::HTTPPost.receive_message(request,
|
162
|
+
Saml::Bindings::HTTPPost.receive_message(request, :authn_request)
|
163
163
|
else
|
164
164
|
return head :not_allowed
|
165
165
|
end
|
data/Rakefile
CHANGED
@@ -20,6 +20,9 @@ RDoc::Task.new(:rdoc) do |rdoc|
|
|
20
20
|
rdoc.rdoc_files.include('lib/**/*.rb')
|
21
21
|
end
|
22
22
|
|
23
|
+
require "bundler/gem_tasks"
|
24
|
+
require "rake/testtask"
|
25
|
+
|
23
26
|
require "rspec/core/rake_task"
|
24
27
|
|
25
28
|
RSpec::Core::RakeTask.new(:core) do |spec|
|
@@ -27,7 +30,3 @@ RSpec::Core::RakeTask.new(:core) do |spec|
|
|
27
30
|
end
|
28
31
|
|
29
32
|
task :default => [:core]
|
30
|
-
|
31
|
-
|
32
|
-
Bundler::GemHelper.install_tasks
|
33
|
-
|
data/lib/saml/assertion.rb
CHANGED
@@ -58,10 +58,11 @@ module Saml
|
|
58
58
|
@provider ||= Saml.provider(issuer)
|
59
59
|
end
|
60
60
|
|
61
|
-
def add_attribute(key, value)
|
61
|
+
def add_attribute(key, value, value_attributes = {})
|
62
62
|
self.attribute_statement ||= Saml::Elements::AttributeStatement.new
|
63
63
|
self.attribute_statement.attributes ||= []
|
64
|
-
|
64
|
+
attribute_value = Saml::Elements::AttributeValue.new(value_attributes.merge(content: value))
|
65
|
+
self.attribute_statement.attributes << Saml::Elements::Attribute.new(name: key, attribute_value: attribute_value)
|
65
66
|
end
|
66
67
|
|
67
68
|
def fetch_attribute(key)
|
@@ -24,7 +24,16 @@ module Saml
|
|
24
24
|
notify('receive_message', message)
|
25
25
|
request_or_response = Saml.parse_message(message, type)
|
26
26
|
|
27
|
-
|
27
|
+
skip_signature_verification = (
|
28
|
+
request_or_response.is_a?(Saml::AuthnRequest) &&
|
29
|
+
!request_or_response.provider.authn_requests_signed?
|
30
|
+
)
|
31
|
+
|
32
|
+
verified_request_or_response = if skip_signature_verification
|
33
|
+
request_or_response
|
34
|
+
else
|
35
|
+
Saml::Util.verify_xml(request_or_response, message)
|
36
|
+
end
|
28
37
|
verified_request_or_response.actual_destination = request.url
|
29
38
|
verified_request_or_response
|
30
39
|
end
|
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: 2.
|
4
|
+
version: 2.24.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Benoist Claassen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-12-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|