usps-jwt_auth 1.2.1 → 1.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.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/usps/jwt_auth/concern.rb +6 -1
- data/lib/usps/jwt_auth/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 17662af2194b354229fdc800d007e1121fb3a34dbb65bcf1a8e1df2ec0011087
|
|
4
|
+
data.tar.gz: 7a2017a06711cb9a4714b111a4a2ee85ca3ede7c7e9d0d851e098d1dd83fa302
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 33b3ce36812329c3d25a890fd1c5d0c8b591671fef159fd602276b5217f238c021e65c60512e1ea75dc5addc07d6b1f56b0b6c2329c027cfe79362f9752752c4
|
|
7
|
+
data.tar.gz: e7e2aed19988c5148ad9550e20b94e018ac1fad129704badbce18a35f027d9c5da231b1570d7eb9821d08838921af238fed223cdd7412b72e5f2b9dab69a7f41
|
data/Gemfile.lock
CHANGED
|
@@ -64,7 +64,12 @@ module Usps
|
|
|
64
64
|
end
|
|
65
65
|
|
|
66
66
|
def jwt_user
|
|
67
|
-
|
|
67
|
+
return unless fetch_jwt
|
|
68
|
+
# A blank certificate claim is malformed and must never resolve to a member
|
|
69
|
+
# (e.g. a stray blank-certificate row would otherwise authenticate as that record).
|
|
70
|
+
return if jwt['certificate'].blank?
|
|
71
|
+
|
|
72
|
+
@jwt_user ||= JwtAuth.config.find_member.call(jwt['certificate'])
|
|
68
73
|
end
|
|
69
74
|
|
|
70
75
|
def set_new_jwt
|