devise_saml_authenticatable 1.6.1 → 1.6.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d3ca38cfe51cdf71fc8a264de868fc285bfa413307aa4798e097fbf88e85020d
4
- data.tar.gz: 2371ef1371e29547b4eb9681066fa43f0b6d39236b7df8676236bf13678e2d01
3
+ metadata.gz: c0d1e1f1df121795583d9fc25cab40edac01bb61f8adbdb4fac7c0c15bfe4b0c
4
+ data.tar.gz: 0d7770994b0c119da178a3b19ced6d52a88364d561279c5bd759ce5580fb5fe5
5
5
  SHA512:
6
- metadata.gz: 872bfb214a00504735d9183d169e4119ebb9c6ae3129de729be642f39c4675b57040bb1c9d46899e73d534aa82d7ac9291c425109c10eaeb290831480e7976ab
7
- data.tar.gz: 3269ef293937aef443afa9a325acc0addf027c3ad7421865a9ebe1554d7215461767ffe9e34cd4cc2bf8edbae831e7e342dd3c47245d57209d8ddd820a128212
6
+ metadata.gz: d849dc5dff4bd09d0dd034449ed3e68494f0f1c82c8e31c708b7d6e0d3a366a2fd119fb24704d0e5a946b6fc206dbe072fadbf7218489abffdbe1b3644d41419
7
+ data.tar.gz: e64b35109ed35b61e804fa5e06d3b3c299210cf75804f706e299147d02a7ddb929246c1a7fdb65aee12f5ceed5348267d3c6e4657544288e3a45741474d5e30d
@@ -66,12 +66,7 @@ module Devise
66
66
  end
67
67
 
68
68
  if Devise.saml_update_user || (resource.new_record? && Devise.saml_create_user)
69
- begin
70
- Devise.saml_update_resource_hook.call(resource, decorated_response, auth_value)
71
- rescue
72
- logger.info("User(#{auth_value}) failed to create or update.")
73
- return nil
74
- end
69
+ Devise.saml_update_resource_hook.call(resource, decorated_response, auth_value)
75
70
  end
76
71
 
77
72
  resource
@@ -1,3 +1,3 @@
1
1
  module DeviseSamlAuthenticatable
2
- VERSION = "1.6.1"
2
+ VERSION = "1.6.2"
3
3
  end
@@ -104,12 +104,6 @@ describe Devise::Models::SamlAuthenticatable do
104
104
  expect(model.name).to eq('A User')
105
105
  expect(model.saved).to be(true)
106
106
  end
107
-
108
- it "returns nil if it fails to create a user" do
109
- expect(Model).to receive(:where).with(email: 'user@example.com').and_return([])
110
- expect(Devise).to receive(:saml_update_resource_hook).and_raise(StandardError.new)
111
- expect(Model.authenticate_with_saml(response, nil)).to be_nil
112
- end
113
107
  end
114
108
 
115
109
  context "when configured to update a user and the user is found" do
@@ -125,13 +119,6 @@ describe Devise::Models::SamlAuthenticatable do
125
119
  expect(model.name).to eq('A User')
126
120
  expect(model.saved).to be(true)
127
121
  end
128
-
129
- it "returns nil if it fails to update a user" do
130
- user = Model.new(new_record: false)
131
- expect(Model).to receive(:where).with(email: 'user@example.com').and_return([user])
132
- expect(Devise).to receive(:saml_update_resource_hook).and_raise(StandardError.new)
133
- expect(Model.authenticate_with_saml(response, nil)).to be_nil
134
- end
135
122
  end
136
123
  end
137
124
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: devise_saml_authenticatable
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.1
4
+ version: 1.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josef Sauter
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-09-14 00:00:00.000000000 Z
11
+ date: 2020-09-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: devise