saml2 3.2.2 → 3.2.3

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: 61db895758d50550a2065ede88a04faf606a2a8c60afe5d972f57849afc69a40
4
- data.tar.gz: cbae23b344c5ea0ab74ec8373f773bb3050e72457adbf9b6bde6dce03c932090
3
+ metadata.gz: 0cc92864a26047c46a21c7294ece5009a8df5edbcc79694167b5dfe569a63530
4
+ data.tar.gz: c411ec995c1a0a02454821e0f1ea8e0ace5ee0488f0db6394f39ffc3376c5c7e
5
5
  SHA512:
6
- metadata.gz: 4c343f2707bae3df452174b4e10eccf46703e8d0be7ac5275e7d73947f5f3703c88f7c180d48cc13d6aa5a97d24e4216220ce6ff69c6d787ebd0af2a61eb105c
7
- data.tar.gz: c2ac30a2360fb13c0e2cdb41dcd29e1fc0921605f56ec46e3f2c2e3d18f011025f77899860b230d6f4205b534b4903a8c26109689b2b5e9784a1e86844a6f3eb
6
+ metadata.gz: 04770f4380d3cde93e2169e58923b051e2e70ed08e77c45b000d03ce7d398a28aa958f7e5ca109863a13f8fba1b0724e6679e6a82231509e5931e832890128d5
7
+ data.tar.gz: 6a80a9275d319b7bf14fa3fd356500cf5a6d14df94263509a3f1a590d77870dff24eed65584991c0da68012576150eb8d1712c736e1742f12fa8ef0037d304f0
@@ -131,7 +131,7 @@ module SAML2
131
131
  # @param message [Message]
132
132
  # Note that the base URI is taken from {Message#destination}.
133
133
  # @param relay_state optional [String]
134
- # @param private_key optional [OpenSSL::PKey::RSA]
134
+ # @param private_key optional [OpenSSL::PKey::RSA, String]
135
135
  # A key to use to sign the encoded message.
136
136
  # @param sig_alg optional [String]
137
137
  # The signing algorithm to use. Defaults to RSA-SHA1, as it's the
@@ -164,6 +164,7 @@ module SAML2
164
164
  raise ArgumentError,
165
165
  "Unsupported signature algorithm #{sig_alg}"
166
166
  end
167
+ private_key = OpenSSL::PKey.read(private_key) if private_key.is_a?(String)
167
168
 
168
169
  query << ["SigAlg", sig_alg]
169
170
  base_string = URI.encode_www_form(query)
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.2.2"
4
+ VERSION = "3.2.3"
5
5
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: saml2
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.2.2
4
+ version: 3.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cody Cutrer
8
8
  bindir: exe
9
9
  cert_chain: []
10
- date: 2025-07-10 00:00:00.000000000 Z
10
+ date: 2025-07-16 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: activesupport