BigW Consortium Gitlab

auth_hash.rb 371 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10
module Gitlab
  module Saml
    class AuthHash < Gitlab::OAuth::AuthHash
      def groups
        get_raw(Gitlab::Saml::Config.groups)
      end

      private

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