userbin 1.4.1 → 1.4.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/userbin/client.rb +3 -3
- data/lib/userbin/models/session.rb +0 -1
- data/lib/userbin/session_token.rb +1 -5
- data/lib/userbin/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 213cb349e7987434937ef6fd4483b78ae0f5b4b7
|
4
|
+
data.tar.gz: 9f61c2eeb48ff12e2b9c22daf81dcab435699a53
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 87aaede95dd81c178b522c0b9a39e77d67803f7164106c825db47b07da2c3619860e758778c29c7c915a3e1ad7b0bff2ec5145ae81e11d3d7641f88bf729f9e7
|
7
|
+
data.tar.gz: c3e27530f507731571a97320a75683bd16e13698118eadf2b16fb23ad8b7bfbf7759ef47bac05acc579e528a1f3f2431b3fb15d4dab4a7a6f7fae66f0f165381
|
data/lib/userbin/client.rb
CHANGED
@@ -109,9 +109,9 @@ module Userbin
|
|
109
109
|
|
110
110
|
identify(user_id)
|
111
111
|
|
112
|
-
|
113
|
-
|
114
|
-
trusted_device_token: self.trusted_device_token)
|
112
|
+
user = Userbin::User.new(@session_store.user_id)
|
113
|
+
session = user.sessions.create(
|
114
|
+
user: user_attrs, trusted_device_token: self.trusted_device_token)
|
115
115
|
|
116
116
|
# Set the session token for use in all subsequent requests
|
117
117
|
self.session_token = session.token
|
@@ -21,7 +21,7 @@ module Userbin
|
|
21
21
|
end
|
22
22
|
|
23
23
|
def has_challenge?
|
24
|
-
|
24
|
+
@jwt.payload['chg'] == 1
|
25
25
|
end
|
26
26
|
|
27
27
|
def mfa_enabled?
|
@@ -31,9 +31,5 @@ module Userbin
|
|
31
31
|
def device_trusted?
|
32
32
|
@jwt.payload['tru'] == 1
|
33
33
|
end
|
34
|
-
|
35
|
-
def challenge_type
|
36
|
-
@jwt.payload['chg']['typ'].to_sym if has_challenge?
|
37
|
-
end
|
38
34
|
end
|
39
35
|
end
|
data/lib/userbin/version.rb
CHANGED