authentic-rb 1.0.3 → 1.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/authentic/key_manager.rb +1 -2
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4da4fb4072813958676f2d062811807a58cdc88b862376a59f75183f61a35e6f
4
- data.tar.gz: 7644c4358c57624e71192da4fa1933aa62f3e767b02c48ebbec34228b36e5b2e
3
+ metadata.gz: 338211c4681854410e4b120cb9f3dd51485ffc6056fded46f513b94de6cbd353
4
+ data.tar.gz: 41b9ceb7f8d3dbc9300d20ab3c748f71305866b56ba33f8fdc35e3d74b7c8858
5
5
  SHA512:
6
- metadata.gz: f4fc75816556fab4961449ce1b493f8e870ca386e5fd4bbfabc816c7929991bb7880187f775d90eb1a7dd3df6f8d6af693a30b978812bf6228ad87cdb4c24d67
7
- data.tar.gz: 22fe20a7078d98ecc7b0e9389d6e97106ccf1bbc1d5f797e5388d519d92892d1a2432da36f5547c3ae9079152f874958d19a81c4153c82e8012c0a5ce444eeb9
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 = URI.join iss, well_known
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
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: authentic-rb
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Articulate