openid_connect 0.3.7 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.7
1
+ 0.4.0
@@ -21,15 +21,13 @@ module OpenIDConnect
21
21
  :x509_encryption_url,
22
22
  :sector_identifier_url,
23
23
  :user_id_type,
24
- :require_signed_request_object,
24
+ :request_object_signing_alg,
25
25
  :userinfo_signed_response_alg,
26
26
  :userinfo_encrypted_response_alg,
27
27
  :userinfo_encrypted_response_enc,
28
- :userinfo_encrypted_response_int,
29
28
  :id_token_signed_response_alg,
30
29
  :id_token_encrypted_response_alg,
31
30
  :id_token_encrypted_response_enc,
32
- :id_token_encrypted_response_int,
33
31
  :default_max_age,
34
32
  :require_auth_time,
35
33
  :default_acr
@@ -13,6 +13,7 @@ module OpenIDConnect
13
13
  :token_endpoint,
14
14
  :user_info_endpoint,
15
15
  :refresh_session_endpoint,
16
+ :check_session_endpoint,
16
17
  :end_session_endpoint,
17
18
  :jwk_url,
18
19
  :jwk_encryption_url,
@@ -23,11 +24,17 @@ module OpenIDConnect
23
24
  :response_types_supported,
24
25
  :acrs_supported,
25
26
  :user_id_types_supported,
26
- :user_info_algs_supported,
27
- :id_token_algs_supported,
28
- :request_object_algs_supported,
27
+ :user_info_signing_alg_values_supported,
28
+ :user_info_encryption_alg_values_supported,
29
+ :user_info_encryption_enc_values_supported,
30
+ :id_token_signing_alg_values_supported,
31
+ :id_token_encryption_alg_values_supported,
32
+ :id_token_encryption_enc_values_supported,
33
+ :request_object_signing_alg_values_supported,
34
+ :request_object_encryption_alg_values_supported,
35
+ :request_object_encryption_enc_values_supported,
29
36
  :token_endpoint_auth_types_supported,
30
- :token_endpoint_auth_algs_supported
37
+ :token_endpoint_auth_signing_alg_values_supported
31
38
  )
32
39
 
33
40
  def initialize(hash)
@@ -35,7 +42,9 @@ module OpenIDConnect
35
42
  self.send "#{key}=", hash[key]
36
43
  end
37
44
  @user_info_endpoint ||= hash[:userinfo_endpoint]
38
- @user_info_algs_supported ||= hash[:userinfo_algs_supported]
45
+ @user_info_signing_alg_values_supported ||= hash[:userinfo_signing_alg_values_supported]
46
+ @user_info_encryption_alg_values_supported ||= hash[:userinfo_encryption_alg_values_supported]
47
+ @user_info_encryption_enc_values_supported ||= hash[:userinfo_encryption_enc_values_supported]
39
48
  @version ||= '3.0'
40
49
  @raw = hash
41
50
  end
@@ -47,7 +56,9 @@ module OpenIDConnect
47
56
  )
48
57
  end
49
58
  hash[:userinfo_endpoint] = hash.delete(:user_info_endpoint)
50
- hash[:userinfo_algs_supported] = hash.delete(:user_info_algs_supported)
59
+ hash[:userinfo_signing_alg_values_supported] = hash.delete(:user_info_signing_alg_values_supported)
60
+ hash[:userinfo_encryption_alg_values_supported] = hash.delete(:user_info_encryption_alg_values_supported)
61
+ hash[:userinfo_encryption_enc_values_supported] = hash.delete(:user_info_encryption_enc_values_supported)
51
62
  hash.delete_if do |key, value|
52
63
  value.nil?
53
64
  end
@@ -31,15 +31,21 @@ describe OpenIDConnect::Discovery::Provider::Config::Response do
31
31
  end
32
32
  end
33
33
 
34
- context 'when user_info_algs_supported given' do
35
- let :attributes do
36
- {user_info_algs_supported: [:HS256, :RS256]}
37
- end
38
- it do
39
- should include :userinfo_algs_supported
40
- end
41
- it do
42
- should_not include :user_info_algs_supported
34
+ [
35
+ :user_info_signing_alg_values_supported,
36
+ :user_info_encryption_alg_values_supported,
37
+ :user_info_encryption_enc_values_supported
38
+ ].each do |key|
39
+ context "when #{key} given" do
40
+ let :attributes do
41
+ {key => [:x, :y]}
42
+ end
43
+ it do
44
+ should include key.to_s.sub('user_info', 'userinfo').to_sym
45
+ end
46
+ it do
47
+ should_not include key
48
+ end
43
49
  end
44
50
  end
45
51
  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.3.7
4
+ version: 0.4.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-10-29 00:00:00.000000000 Z
12
+ date: 2012-12-12 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: json
@@ -328,18 +328,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
328
328
  - - ! '>='
329
329
  - !ruby/object:Gem::Version
330
330
  version: '0'
331
- segments:
332
- - 0
333
- hash: 4253340027617054014
334
331
  required_rubygems_version: !ruby/object:Gem::Requirement
335
332
  none: false
336
333
  requirements:
337
334
  - - ! '>='
338
335
  - !ruby/object:Gem::Version
339
336
  version: '0'
340
- segments:
341
- - 0
342
- hash: 4253340027617054014
343
337
  requirements: []
344
338
  rubyforge_project:
345
339
  rubygems_version: 1.8.24