Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/diaspora/diaspora.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoraugier <christophe@c-henry.fr>2015-10-25 02:15:33 +0300
committertheworldbright <kent@kentshikama.com>2016-01-04 10:49:57 +0300
commitd028b5672e07a7724e9b11fdaa500518966f6c5f (patch)
treeefa8a455c29f7efcc465e75bbe8e31aa07a00f23 /lib/api/openid_connect/authorization_point
parent2f8c391ac66457638c40734372983028eebd1866 (diff)
Fix remarks
Diffstat (limited to 'lib/api/openid_connect/authorization_point')
-rw-r--r--lib/api/openid_connect/authorization_point/endpoint_start_point.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/openid_connect/authorization_point/endpoint_start_point.rb b/lib/api/openid_connect/authorization_point/endpoint_start_point.rb
index 87fd005fc..007a2c592 100644
--- a/lib/api/openid_connect/authorization_point/endpoint_start_point.rb
+++ b/lib/api/openid_connect/authorization_point/endpoint_start_point.rb
@@ -16,7 +16,7 @@ module Api
def replace_profile_scope_with_specific_claims(req)
profile_claims = %w(sub aud name nickname profile picture)
- scopes_as_claims = req.scope.map {|scope| scope == "profile" ? profile_claims : [scope] }.flatten!.uniq
+ scopes_as_claims = req.scope.flat_map {|scope| scope == "profile" ? profile_claims : [scope] }.uniq
req.update_param("scope", scopes_as_claims)
end