diff options
author | Hassan Zamani <hsn.zamani@gmail.com> | 2017-05-30 09:06:00 +0300 |
---|---|---|
committer | Markus Koller <markus.koller.ext@siemens.com> | 2018-02-08 15:22:41 +0300 |
commit | 583ef9458c5e5c32a14629f5754bc53ed0ad8a33 (patch) | |
tree | 711012ffe04f5822e55332ef971a37e26748689b /config/initializers/doorkeeper_openid_connect.rb | |
parent | bfb32b46327576f5b5d4ff3d42198ba4601f1830 (diff) |
Add groups to OpenID Connect claims
Diffstat (limited to 'config/initializers/doorkeeper_openid_connect.rb')
-rw-r--r-- | config/initializers/doorkeeper_openid_connect.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/config/initializers/doorkeeper_openid_connect.rb b/config/initializers/doorkeeper_openid_connect.rb index af174def047..98e1f6e830f 100644 --- a/config/initializers/doorkeeper_openid_connect.rb +++ b/config/initializers/doorkeeper_openid_connect.rb @@ -31,6 +31,7 @@ Doorkeeper::OpenidConnect.configure do o.claim(:website) { |user| user.full_website_url if user.website_url? } o.claim(:profile) { |user| Gitlab::Routing.url_helpers.user_url user } o.claim(:picture) { |user| user.avatar_url(only_path: false) } + o.claim(:groups) { |user| user.membership_groups.map(&:full_path) } end end end |