summaryrefslogtreecommitdiff
path: root/app/helpers/admin/identities_helper.rb
blob: 48e01840394e756ae98c41985ef653fa37a04ed2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# frozen_string_literal: true

module Admin
  module IdentitiesHelper
    def label_for_identity_provider(identity)
      provider = identity.provider
      "#{Gitlab::Auth::OAuth::Provider.label_for(provider)} (#{provider})"
    end

    def provider_id_cell_testid(identity)
      'provider_id_blank'
    end

    def provider_id(identity)
      '-'
    end

    def saml_group_cell_testid(identity)
      'saml_group_blank'
    end

    def saml_group_link(identity)
      '-'
    end

    def identity_cells_to_render?(identities, _user)
      identities.present?
    end

    def scim_identities_collection(_user)
      []
    end
  end
end

Admin::IdentitiesHelper.prepend_mod