authlete 0.0.3 → 0.0.4

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.
@@ -83,8 +83,10 @@ module Authlete
83
83
  res.authenticated = true
84
84
  res.subject = subject
85
85
 
86
- # Make the subclass collect values of the requested claims.
87
- res.claims = collect_claims(req, subject)
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
@@ -1,3 +1,3 @@
1
1
  module Authlete
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: authlete
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: