saml2 3.1.4 → 3.1.6

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6af3303cbbfd4c78c055015c30df1772bddbee535f27144696c57464398f439e
4
- data.tar.gz: fd0fb87f88e987cf4fc081e7c4e833e12d3a7489662f314a5e5383e5f4278952
3
+ metadata.gz: e8743fba8c3b6504e59d2018f80a94cc76b578cde1a18a830f21abc659e88c7c
4
+ data.tar.gz: ea48e068558380f1347c0314524bbb73ebdf79b6f0aa77092ab4d5418d0460a2
5
5
  SHA512:
6
- metadata.gz: 5af19de37ce48ef31e22c18fa7eeaeb44c371d8751af579c2d2a06b6b1cd76579c64eba9b40a304a8da549937d0d7e0b9a8ef38439149be52567e0f424b85a9e
7
- data.tar.gz: 6a224a75ff2d4f6408adf1beb3ca4fa65c15be36d65173b5882b6a0223b5b71fd3499fa4364e53f47ccba5ebd6c746fa2c2433012a0bdcd698cdb864fafd6dd8
6
+ metadata.gz: 9f399fff72e959ed55e5b4267cfb2c7f7eab5154ba4492476a5a1b64d65f4279e2a862c29eb77f389cf7e42a2ad6ce1af43c76661fa5a547d7e88c4dd872369c
7
+ data.tar.gz: f1312c1af108ec016bad5b90b7f5a83c66e243d082578837aea95c025bb694749e53d76125f55aac96724be794acced37f9154075ddc124d8cafdadb2f246165
@@ -85,8 +85,8 @@ module SAML2
85
85
  ["unable to validate #{xml&.name || "unrecognized"} condition"]
86
86
  end
87
87
 
88
- def valid?(*args)
89
- validate(*args).empty?
88
+ def valid?(...)
89
+ validate(...).empty?
90
90
  end
91
91
  end
92
92
 
data/lib/saml2/key.rb CHANGED
@@ -29,8 +29,9 @@ module SAML2
29
29
  exponent = crypto_binary_to_integer(rsa_key_value.at_xpath("dsig:Exponent", Namespaces::ALL)&.content&.strip)
30
30
  return unless modulus && exponent
31
31
 
32
- @key = OpenSSL::PKey::RSA.new
33
- key.set_key(modulus, exponent, nil)
32
+ @key = OpenSSL::PKey::RSA.new(
33
+ OpenSSL::ASN1::Sequence([OpenSSL::ASN1::Integer(modulus), OpenSSL::ASN1::Integer(exponent)]).to_der
34
+ )
34
35
  end
35
36
 
36
37
  def x509=(value)
data/lib/saml2/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SAML2
4
- VERSION = "3.1.4"
4
+ VERSION = "3.1.6"
5
5
  end
@@ -9,5 +9,6 @@
9
9
  schemaLocation="ws-federation.xsd"/>
10
10
  <import namespace="urn:oasis:names:tc:SAML:metadata:ext:query"
11
11
  schemaLocation="sstc-saml-metadata-ext-query.xsd"/>
12
-
12
+ <import namespace="urn:oasis:names:tc:SAML:metadata:algsupport"
13
+ schemaLocation="sstc-saml-metadata-algsupport-v1.0.xsd"/>
13
14
  </schema>
@@ -0,0 +1,54 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+
3
+ <!--
4
+
5
+ SAML v2.0 Metadata Profile for Algorithm Support Version 1.0
6
+ Committee Specification 01
7
+ 21 February 2011
8
+ Copyright (c) OASIS Open 2011. All rights reserved.
9
+ Source: http://docs.oasis-open.org/security/saml/Post2.0/sstc-saml-metadata-algsupport-v1.0-cs01.xsd
10
+
11
+ -->
12
+
13
+ <schema
14
+ targetNamespace="urn:oasis:names:tc:SAML:metadata:algsupport"
15
+ xmlns="http://www.w3.org/2001/XMLSchema"
16
+ xmlns:alg="urn:oasis:names:tc:SAML:metadata:algsupport"
17
+ elementFormDefault="unqualified"
18
+ attributeFormDefault="unqualified"
19
+ blockDefault="substitution"
20
+ version="1.0">
21
+
22
+ <annotation>
23
+ <documentation>
24
+ Document title: Metadata Extension Schema for SAML V2.0 Metadata Profile for Algorithm Support Version 1.0
25
+ Document identifier: sstc-saml-metadata-algsupport.xsd
26
+ Location: http://docs.oasis-open.org/security/saml/Post2.0/
27
+ Revision history:
28
+ V1.0 (June 2010):
29
+ Initial version.
30
+ (October 2010):
31
+ Add processContents="lax" to wildcards.
32
+ </documentation>
33
+ </annotation>
34
+
35
+ <element name="DigestMethod" type="alg:DigestMethodType"/>
36
+ <complexType name="DigestMethodType">
37
+ <sequence>
38
+ <any namespace="##any" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
39
+ </sequence>
40
+ <attribute name="Algorithm" type="anyURI" use="required"/>
41
+ </complexType>
42
+
43
+ <element name="SigningMethod" type="alg:SigningMethodType"/>
44
+ <complexType name="SigningMethodType">
45
+ <sequence>
46
+ <any namespace="##any" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
47
+ </sequence>
48
+ <attribute name="Algorithm" type="anyURI" use="required"/>
49
+ <attribute name="MinKeySize" type="positiveInteger"/>
50
+ <attribute name="MaxKeySize" type="positiveInteger"/>
51
+ </complexType>
52
+
53
+ </schema>
54
+
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
4
+ version: 3.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cody Cutrer
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-10-06 00:00:00.000000000 Z
11
+ date: 2024-02-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -215,6 +215,7 @@ files:
215
215
  - schemas/saml-schema-assertion-2.0.xsd
216
216
  - schemas/saml-schema-metadata-2.0.xsd
217
217
  - schemas/saml-schema-protocol-2.0.xsd
218
+ - schemas/sstc-saml-metadata-algsupport-v1.0.xsd
218
219
  - schemas/sstc-saml-metadata-ext-query.xsd
219
220
  - schemas/ws-addr.xsd
220
221
  - schemas/ws-authorization.xsd
@@ -243,7 +244,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
243
244
  - !ruby/object:Gem::Version
244
245
  version: '0'
245
246
  requirements: []
246
- rubygems_version: 3.4.19
247
+ rubygems_version: 3.4.10
247
248
  signing_key:
248
249
  specification_version: 4
249
250
  summary: SAML 2.0 Library