omniauth-saml 2.2.1 → 2.2.2

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.

Potentially problematic release.


This version of omniauth-saml might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6aa6908b52ef164e3f3c456ade96158e807779d1f5652b3637c63fad7644081b
4
- data.tar.gz: c81a57317126548fedc3ac3537747254508452cdd7294c9cd5fbd308e2530419
3
+ metadata.gz: '09afe8539d2c8a27acd3b1b7ca8d76161e4aa97abf8a9daf1823d538171bbff4'
4
+ data.tar.gz: 2d45bf22f8c0d15f72d9d3a722be49a0493bc1a0100878374cd914994808d484
5
5
  SHA512:
6
- metadata.gz: fdf04e84689f30a1ef0d76a9ed6212a43aa25ed0732ee8ef0cf88364ad98b731cb9230ce94dc339a9e713c743f3e99f442ee560c6c94d4710923cc7827ed3159
7
- data.tar.gz: b47ec9f485fc24e88d2ab11a8c1dd10bcbb2f9ffbc37db287b5a3bec31b09aee92990b49827e45bfb55038a03dbb8139ebb34a731ed541768457f7720b976540
6
+ metadata.gz: e3b46bcc1f12a72a54c6c52be2b47dec9e855d0812b5884b74555665c69f255b23ee4bcbe1225ddc58d0359f216571fde7f4e9ff80e0482fb87e055c429ba19a
7
+ data.tar.gz: f9f65700dfe33911ca1d26d3890465bc79759dcddd2b2c823ddf4d5cde8b67acdeaaeffad101087b0a517f9ae420fb1d3f4f13853eaacf27e7c8441709c4aa15
data/CHANGELOG.md CHANGED
@@ -1,3 +1,12 @@
1
+ <a name="v2.2.2"></a>
2
+ ### v2.2.2 (2025-03-04)
3
+
4
+
5
+ #### Features
6
+
7
+ * log errors on failed logout ([23ef364](/../../commit/23ef364))
8
+
9
+
1
10
  <a name="v2.2.1"></a>
2
11
  ### v2.2.1 (2024-09-11)
3
12
 
@@ -190,7 +190,7 @@ module OmniAuth
190
190
  logout_response = OneLogin::RubySaml::SloLogoutresponse.new.create(settings, logout_request_id, nil, RelayState: slo_relay_state)
191
191
  redirect(logout_response)
192
192
  else
193
- raise OmniAuth::Strategies::SAML::ValidationError.new("SAML failed to process LogoutRequest")
193
+ raise OmniAuth::Strategies::SAML::ValidationError.new("SAML failed to process LogoutRequest (#{logout_request.errors.join(', ')})")
194
194
  end
195
195
  end
196
196
 
@@ -1,5 +1,5 @@
1
1
  module OmniAuth
2
2
  module SAML
3
- VERSION = '2.2.1'
3
+ VERSION = '2.2.2'
4
4
  end
5
5
  end
@@ -346,12 +346,13 @@ describe OmniAuth::Strategies::SAML, :type => :strategy do
346
346
  context "when request is an invalid logout request" do
347
347
  before :each do
348
348
  allow_any_instance_of(OneLogin::RubySaml::SloLogoutrequest).to receive(:is_valid?).and_return(false)
349
+ allow_any_instance_of(OneLogin::RubySaml::SloLogoutrequest).to receive(:errors).and_return(['Blank logout request'])
349
350
  end
350
351
 
351
352
  # TODO: Maybe this should not raise an exception, but return some 4xx error instead?
352
353
  it "should raise an exception" do
353
354
  expect { subject }.
354
- to raise_error(OmniAuth::Strategies::SAML::ValidationError, 'SAML failed to process LogoutRequest')
355
+ to raise_error(OmniAuth::Strategies::SAML::ValidationError, 'SAML failed to process LogoutRequest (Blank logout request)')
355
356
  end
356
357
  end
357
358
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-saml
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.1
4
+ version: 2.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Raecoo Cao
@@ -14,7 +14,7 @@ authors:
14
14
  autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
- date: 2024-09-11 00:00:00.000000000 Z
17
+ date: 2025-03-04 00:00:00.000000000 Z
18
18
  dependencies:
19
19
  - !ruby/object:Gem::Dependency
20
20
  name: omniauth
@@ -162,7 +162,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
162
162
  - !ruby/object:Gem::Version
163
163
  version: '0'
164
164
  requirements: []
165
- rubygems_version: 3.5.15
165
+ rubygems_version: 3.4.19
166
166
  signing_key:
167
167
  specification_version: 4
168
168
  summary: A generic SAML strategy for OmniAuth.