BigW Consortium Gitlab

auth_hash.rb 373 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11
module Gitlab
  module Saml
    class AuthHash < Gitlab::OAuth::AuthHash

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

      private

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

    end
  end
end