authentic-rb 1.0.3 → 1.0.4
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/lib/authentic/key_manager.rb +1 -2
- 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: 338211c4681854410e4b120cb9f3dd51485ffc6056fded46f513b94de6cbd353
|
4
|
+
data.tar.gz: 41b9ceb7f8d3dbc9300d20ab3c748f71305866b56ba33f8fdc35e3d74b7c8858
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fc100141cc28b0a20f4a131cba993ab52662ca222645babb4f46e720bbf07efa21f4326565744c95725af490595aa4a36bf35230efb83eec695aaab43049bec9
|
7
|
+
data.tar.gz: 58d89a5b690c77f9975ae4abf18b3195854bae27789e47b43faf7a4aebda957f97370a2daa8b8e35c85b7ba34a02c5c8aa8674c4f1b363cf3a8c0bea4056dd33
|
@@ -2,7 +2,6 @@
|
|
2
2
|
|
3
3
|
require 'json/jwt'
|
4
4
|
require 'rest-client'
|
5
|
-
require 'uri'
|
6
5
|
require 'authentic/key_store'
|
7
6
|
|
8
7
|
module Authentic
|
@@ -72,7 +71,7 @@ module Authentic
|
|
72
71
|
#
|
73
72
|
# Returns nothing.
|
74
73
|
def hydrate_iss_keys(iss)
|
75
|
-
uri =
|
74
|
+
uri = iss.sub(%r{[\/]+$}, '') + well_known
|
76
75
|
json = json_req uri.to_s
|
77
76
|
body = json_req json['jwks_uri']
|
78
77
|
|