saml2 3.1.9 → 3.1.10
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/saml2/attribute/x500.rb +2 -2
- data/lib/saml2/attribute.rb +2 -1
- data/lib/saml2/bindings/http_redirect.rb +2 -2
- data/lib/saml2/requested_authn_context.rb +5 -0
- data/lib/saml2/status_response.rb +1 -1
- data/lib/saml2/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: 99a6296632edaf74d6fc282ef56d06e94dc71787e02b254b5e366902a487f22d
|
4
|
+
data.tar.gz: d7ec1d384f710d3276f51114c34a84079eba0051f41af6a5ce1704c595a0b354
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 00d66610046dd795906a1ea082c2244c4fabb17f92304005d707f60333233a69c76e059bb312171c3f3ee44470818e32686e418693b059fecb1171d7f6fa7745
|
7
|
+
data.tar.gz: 9ad6721b14a6098c51fa475bd0fec92728e217beb30f7ff314a0abe0765c55d1b3d5343d6e9f661ffda811994f3dc4d45749d603fc23e6303dd92c883ae2bc68
|
data/lib/saml2/attribute/x500.rb
CHANGED
@@ -3,8 +3,8 @@
|
|
3
3
|
module SAML2
|
4
4
|
class Attribute
|
5
5
|
class X500 < Attribute
|
6
|
-
GIVEN_NAME
|
7
|
-
SN = SURNAME
|
6
|
+
GIVEN_NAME = "urn:oid:2.5.4.42"
|
7
|
+
SN = SURNAME = "urn:oid:2.5.4.4"
|
8
8
|
# https://www.ietf.org/rfc/rfc2798.txt
|
9
9
|
module InetOrgPerson
|
10
10
|
DISPLAY_NAME = "urn:oid:2.16.840.1.113730.3.1.241"
|
data/lib/saml2/attribute.rb
CHANGED
@@ -131,8 +131,9 @@ module SAML2
|
|
131
131
|
lookup_qname("xs:date", Namespaces::ALL) =>
|
132
132
|
[Date, nil, ->(v) { Date.parse(v) if v }],
|
133
133
|
lookup_qname("xs:dateTime", Namespaces::ALL) =>
|
134
|
-
[Time,
|
134
|
+
[Time, lambda(&:iso8601), ->(v) { Time.parse(v) if v }]
|
135
135
|
}.freeze
|
136
|
+
private_constant :XS_TYPES
|
136
137
|
|
137
138
|
def convert_to_xsi(value)
|
138
139
|
xs_type = nil
|
@@ -27,7 +27,7 @@ module SAML2
|
|
27
27
|
# A signature, if present, will be verified only if +public_key+ is
|
28
28
|
# passed.
|
29
29
|
#
|
30
|
-
# @param url [String]
|
30
|
+
# @param url [String, URI]
|
31
31
|
# The full URL to decode. Will check for both +SAMLRequest+ and
|
32
32
|
# +SAMLResponse+ params.
|
33
33
|
# @param public_key optional [Array<OpenSSL::PKey>, OpenSSL::PKey, Proc]
|
@@ -45,7 +45,7 @@ module SAML2
|
|
45
45
|
# The same as a +Proc+ provided to +public_key+. Deprecated.
|
46
46
|
def decode(url, public_key: nil, public_key_used: nil)
|
47
47
|
uri = begin
|
48
|
-
URI.parse(url)
|
48
|
+
url.is_a?(URI) ? url : URI.parse(url)
|
49
49
|
rescue URI::InvalidURIError
|
50
50
|
raise CorruptMessage
|
51
51
|
end
|
data/lib/saml2/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: saml2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.1.
|
4
|
+
version: 3.1.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Cody Cutrer
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-02-
|
11
|
+
date: 2025-02-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -90,14 +90,14 @@ dependencies:
|
|
90
90
|
requirements:
|
91
91
|
- - "~>"
|
92
92
|
- !ruby/object:Gem::Version
|
93
|
-
version: '
|
93
|
+
version: '13.2'
|
94
94
|
type: :development
|
95
95
|
prerelease: false
|
96
96
|
version_requirements: !ruby/object:Gem::Requirement
|
97
97
|
requirements:
|
98
98
|
- - "~>"
|
99
99
|
- !ruby/object:Gem::Version
|
100
|
-
version: '
|
100
|
+
version: '13.2'
|
101
101
|
- !ruby/object:Gem::Dependency
|
102
102
|
name: rspec
|
103
103
|
requirement: !ruby/object:Gem::Requirement
|
@@ -146,14 +146,14 @@ dependencies:
|
|
146
146
|
requirements:
|
147
147
|
- - "~>"
|
148
148
|
- !ruby/object:Gem::Version
|
149
|
-
version: '
|
149
|
+
version: '3.5'
|
150
150
|
type: :development
|
151
151
|
prerelease: false
|
152
152
|
version_requirements: !ruby/object:Gem::Requirement
|
153
153
|
requirements:
|
154
154
|
- - "~>"
|
155
155
|
- !ruby/object:Gem::Version
|
156
|
-
version: '
|
156
|
+
version: '3.5'
|
157
157
|
description: |
|
158
158
|
The saml2 library is yet another SAML library for Ruby, with
|
159
159
|
an emphasis on _not_ re-implementing XML, especially XML Security,
|