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

auth_hash.rb « saml « gitlab « lib - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 32c1c9ec5bb7ad8c1227e6a0f3cf2425c1fc9807 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
module Gitlab
  module Saml
    class AuthHash < Gitlab::OAuth::AuthHash

      def groups
        get_raw(Gitlab::Saml::Config.groups)
      end

      private

      def get_raw(key)
        # Needs to call `all` because of https://git.io/vVo4u
        # otherwise just the first value is returned
        auth_hash.extra[:raw_info].all[key]
      end

    end
  end
end