authlete 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/authlete/authentication-server.rb +4 -2
- data/lib/authlete/version.rb +1 -1
- metadata +1 -1
@@ -83,8 +83,10 @@ module Authlete
|
|
83
83
|
res.authenticated = true
|
84
84
|
res.subject = subject
|
85
85
|
|
86
|
-
|
87
|
-
|
86
|
+
if req.claims.nil? == false && req.claims.length != 0
|
87
|
+
# Make the subclass collect values of the requested claims.
|
88
|
+
res.claims = collect_claims(req, subject)
|
89
|
+
end
|
88
90
|
|
89
91
|
# Return {"authenticated": true, ...} to Authlete.
|
90
92
|
return res.to_rack_response
|
data/lib/authlete/version.rb
CHANGED