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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c0d1e1f1df121795583d9fc25cab40edac01bb61f8adbdb4fac7c0c15bfe4b0c
|
4
|
+
data.tar.gz: 0d7770994b0c119da178a3b19ced6d52a88364d561279c5bd759ce5580fb5fe5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|
@@ -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.
|
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-
|
11
|
+
date: 2020-09-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: devise
|