libsaml 3.9.3 → 3.12.0
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 -2
- data/lib/saml/bindings/http_post.rb +6 -1
- data/lib/saml/util.rb +2 -0
- data/lib/saml/version.rb +1 -1
- data/lib/saml.rb +3 -2
- metadata +9 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cf41c481ad564d6d11be7eeffb320747ad38eff7a1fae8e1648aba0cbb883087
|
4
|
+
data.tar.gz: d402905261eff0d5a96fcbe4730e7601e011300857d21681171a98de03f1df62
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e8957a5a9ddbb66b4f606e7f0382ad4d0c8d3307ecbf5004a63b47d32671ae6f8e00073410d78b1b78332cf1967a25c54947b3286d65059f1f198e3fcc07bcbc
|
7
|
+
data.tar.gz: 2032c68c1de65e3972906906951c9a4dd06d93c09157f980602d0b59031de0d0585751f3cd76f6d2d723a1d8b4f6fc91d94d7fd86f3f393db8971f9b9e91bde5
|
data/README.md
CHANGED
@@ -1,7 +1,6 @@
|
|
1
|
-
[![Build status](https://travis-ci.
|
1
|
+
[![Build status](https://app.travis-ci.com/digidentity/libsaml.svg?branch=master)](https://app.travis-ci.com/digidentity/libsaml)
|
2
2
|
[![Coverage status](https://coveralls.io/repos/digidentity/libsaml/badge.png)](https://coveralls.io/r/digidentity/libsaml)
|
3
3
|
[![Code climate](https://codeclimate.com/github/digidentity/libsaml.png)](https://codeclimate.com/github/digidentity/libsaml)
|
4
|
-
[![Dependency status](https://gemnasium.com/digidentity/libsaml.png)](https://gemnasium.com/digidentity/libsaml)
|
5
4
|
|
6
5
|
# libsaml
|
7
6
|
|
@@ -7,7 +7,12 @@ module Saml
|
|
7
7
|
def create_form_attributes(message, options = {})
|
8
8
|
param = message.is_a?(Saml::ComplexTypes::StatusResponseType) ? "SAMLResponse" : "SAMLRequest"
|
9
9
|
|
10
|
-
xml =
|
10
|
+
xml = if options[:skip_signature]
|
11
|
+
message.to_xml
|
12
|
+
else
|
13
|
+
Saml::Util.sign_xml(message)
|
14
|
+
end
|
15
|
+
notify('create_message', xml)
|
11
16
|
|
12
17
|
variables = {}
|
13
18
|
variables[param] = Saml::Encoding.encode_64(xml)
|
data/lib/saml/util.rb
CHANGED
data/lib/saml/version.rb
CHANGED
data/lib/saml.rb
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
require 'active_support/all'
|
2
|
+
require 'active_support/xml_mini'
|
2
3
|
require 'active_model'
|
3
4
|
require 'saml/base'
|
4
5
|
require 'saml/xml_helpers'
|
@@ -8,8 +9,8 @@ require 'saml/notification'
|
|
8
9
|
require 'saml/attribute_fetcher'
|
9
10
|
require 'xmlenc'
|
10
11
|
require 'xmldsig'
|
11
|
-
require
|
12
|
-
require
|
12
|
+
require 'net/https'
|
13
|
+
require 'uri'
|
13
14
|
|
14
15
|
module Saml
|
15
16
|
MD_NAMESPACE = 'urn:oasis:names:tc:SAML:2.0:metadata'
|
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.
|
4
|
+
version: 3.12.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Benoist Claassen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-06-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -44,28 +44,28 @@ dependencies:
|
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: 0.
|
47
|
+
version: 0.8.1
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: 0.
|
54
|
+
version: 0.8.1
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: nokogiri
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: '1.
|
61
|
+
version: '1.11'
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: '1.
|
68
|
+
version: '1.11'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: xmldsig
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -95,7 +95,7 @@ dependencies:
|
|
95
95
|
version: 0.6.9
|
96
96
|
- - "<"
|
97
97
|
- !ruby/object:Gem::Version
|
98
|
-
version: 0.
|
98
|
+
version: 0.9.0
|
99
99
|
type: :runtime
|
100
100
|
prerelease: false
|
101
101
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -105,7 +105,7 @@ dependencies:
|
|
105
105
|
version: 0.6.9
|
106
106
|
- - "<"
|
107
107
|
- !ruby/object:Gem::Version
|
108
|
-
version: 0.
|
108
|
+
version: 0.9.0
|
109
109
|
- !ruby/object:Gem::Dependency
|
110
110
|
name: coveralls
|
111
111
|
requirement: !ruby/object:Gem::Requirement
|
@@ -255,7 +255,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
255
255
|
- !ruby/object:Gem::Version
|
256
256
|
version: '0'
|
257
257
|
requirements: []
|
258
|
-
rubygems_version: 3.1.
|
258
|
+
rubygems_version: 3.1.6
|
259
259
|
signing_key:
|
260
260
|
specification_version: 4
|
261
261
|
summary: A gem to easily create SAML 2.0 messages.
|