openid_connect 0.2.4 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +2 -1
- data/VERSION +1 -1
- data/lib/openid_connect/access_token.rb +1 -1
- data/lib/openid_connect/client.rb +1 -1
- data/lib/openid_connect/client/registrar.rb +1 -1
- data/lib/openid_connect/request_object/claimable.rb +3 -3
- data/lib/openid_connect/response_object/id_token.rb +1 -1
- metadata +1 -1
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
openid_connect (0.2.
|
4
|
+
openid_connect (0.2.4)
|
5
5
|
activemodel (>= 3)
|
6
6
|
attr_required (>= 0.0.5)
|
7
7
|
json (>= 1.4.3)
|
@@ -38,6 +38,7 @@ GEM
|
|
38
38
|
jruby-openssl (0.7.7)
|
39
39
|
bouncy-castle-java (>= 1.5.0146.1)
|
40
40
|
json (1.7.3)
|
41
|
+
json (1.7.3-java)
|
41
42
|
json-jwt (0.0.7)
|
42
43
|
activesupport (>= 2.3)
|
43
44
|
i18n
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.3.0
|
@@ -26,7 +26,7 @@ module OpenIDConnect
|
|
26
26
|
end
|
27
27
|
|
28
28
|
def handle_success_response(response)
|
29
|
-
token_hash = JSON.parse(response.body)
|
29
|
+
token_hash = JSON.parse(response.body, :symbolize_names => true)
|
30
30
|
case token_type = token_hash[:token_type].try(:downcase)
|
31
31
|
when 'bearer'
|
32
32
|
AccessToken.new token_hash.merge(:client => self)
|
@@ -225,7 +225,7 @@ module OpenIDConnect
|
|
225
225
|
end
|
226
226
|
|
227
227
|
def handle_success_response(response)
|
228
|
-
credentials = JSON.parse(response.body)
|
228
|
+
credentials = JSON.parse(response.body, :symbolize_names => true)
|
229
229
|
Client.new(
|
230
230
|
:identifier => credentials[:client_id],
|
231
231
|
:secret => credentials[:client_secret],
|
@@ -12,12 +12,12 @@ module OpenIDConnect
|
|
12
12
|
if claims.present?
|
13
13
|
_claims_ = {}
|
14
14
|
claims.each do |key, value|
|
15
|
-
_claims_[key] = case value
|
16
|
-
when
|
15
|
+
_claims_[key] = case value
|
16
|
+
when :optional, :voluntary
|
17
17
|
{
|
18
18
|
:essential => false
|
19
19
|
}
|
20
|
-
when
|
20
|
+
when :required, :essential
|
21
21
|
{
|
22
22
|
:essential => true
|
23
23
|
}
|