openid_connect 0.6.0 → 0.6.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 77b0fff4702e56386e8fc0e50c10cf58ab662d0f
4
- data.tar.gz: 1adf047cf6615943b05ed5b7aa34ae504ce2d9e2
3
+ metadata.gz: 806c31b986d5df085e19f74d6b7140f3db2b70c5
4
+ data.tar.gz: ad199229fe09fc363fd985c047c038c874c1ef8f
5
5
  SHA512:
6
- metadata.gz: 915d6d6a304106f2862a8c0235a63153145c454526265a1bf1e1cf1f27eb72df2379a73b719fb6c31b5ae43bdae5d6ba3ceaffeb37edd09724ae6ac533572470
7
- data.tar.gz: 47963961ff61a3d530787c238c5ed57b028b07eb48e1558483277906f27988ca66740951bc2764a9ede790ac0584dda7cbe276ec12c0e584cb538f53d9fd4ba8
6
+ metadata.gz: 1a2abe2d41fc859cf818416f3f91a55f0c87644bf0254ddfa8438d905d8ac14f21abb6bdadd52744d3567c99680d95acc4e746bedb9dd48d634c3b3a7a7b70e1
7
+ data.tar.gz: 25e21e4e866c87d4a3732a62152f3ecff3c0f8c24b9ea992417d6c138039c464a44c90e8c68cfec46a131878615356de8f4939a1f6aa574a71c6394e31af7b79
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- openid_connect (0.6.0)
4
+ openid_connect (0.6.1)
5
5
  activemodel (>= 3)
6
6
  attr_required (>= 0.0.5)
7
7
  json (>= 1.4.3)
@@ -36,7 +36,6 @@ GEM
36
36
  httpclient (2.3.3)
37
37
  i18n (0.6.4)
38
38
  json (1.7.7)
39
- json (1.7.7-java)
40
39
  json-jwt (0.4.3)
41
40
  activesupport (>= 2.3)
42
41
  i18n
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.6.0
1
+ 0.6.1
@@ -10,7 +10,7 @@ module OpenIDConnect
10
10
  def initialize(uri)
11
11
  @host = uri.host
12
12
  @port = uri.port unless [80, 443].include?(uri.port)
13
- @path ||= '/.well-known/openid-configuration'
13
+ @path = File.join uri.path, '.well-known/openid-configuration'
14
14
  attr_missing!
15
15
  end
16
16
 
@@ -48,4 +48,15 @@ describe OpenIDConnect::Discovery::Provider::Config do
48
48
  end
49
49
  end
50
50
  end
51
+
52
+ context 'when OP identifier includes path' do
53
+ let(:provider) { 'https://connect.openid4.us/abop' }
54
+ let(:endpoint) { "https://connect.openid4.us/abop/.well-known/openid-configuration" }
55
+
56
+ it 'should construct well-known URI with given port' do
57
+ mock_json :get, endpoint, 'discovery/config' do
58
+ OpenIDConnect::Discovery::Provider::Config.discover! provider
59
+ end
60
+ end
61
+ end
51
62
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: openid_connect
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - nov matake