/dports/www/gitlab-workhorse/gitlab-foss-0a901d60f8ae4a60c04ae82e6e9c3a03e9321417/spec/lib/gitlab/auth/o_auth/ |
H A D | user_spec.rb | 173 expect(identity.extern_uid).to eql uid 257 …ties_as_hash = gl_user.identities.map { |id| { provider: id.provider, extern_uid: id.extern_uid } } 286 …ties_as_hash = gl_user.identities.map { |id| { provider: id.provider, extern_uid: id.extern_uid } } 349 …ties_as_hash = gl_user.identities.map { |id| { provider: id.provider, extern_uid: id.extern_uid } } 383 …ties_as_hash = gl_user.identities.map { |id| { provider: id.provider, extern_uid: id.extern_uid } } 402 …ties_as_hash = gl_user.identities.map { |id| { provider: id.provider, extern_uid: id.extern_uid } } 419 …ties_as_hash = gl_user.identities.map { |id| { provider: id.provider, extern_uid: id.extern_uid } } 431 …ties_as_hash = gl_user.identities.map { |id| { provider: id.provider, extern_uid: id.extern_uid } } 452 …ties_as_hash = gl_user.identities.map { |id| { provider: id.provider, extern_uid: id.extern_uid } } 522 …ties_as_hash = gl_user.identities.map { |id| { provider: id.provider, extern_uid: id.extern_uid } } [all …]
|
H A D | identity_linker_spec.rb | 14 let!(:identity) { user.identities.create!(provider: provider, extern_uid: uid) } 28 let!(:identity) { create(:identity, provider: provider, extern_uid: uid) } 55 expect(user.identities.last.extern_uid).to eq uid
|
/dports/www/gitlab-workhorse/gitlab-foss-0a901d60f8ae4a60c04ae82e6e9c3a03e9321417/spec/lib/gitlab/auth/saml/ |
H A D | user_spec.rb | 43 expect(identity.extern_uid).to eql uid 93 expect(identity.extern_uid).to eql uid 179 …ties_as_hash = gl_user.identities.map { |id| { provider: id.provider, extern_uid: id.extern_uid } } 181 { provider: 'saml', extern_uid: uid }]) 205 extern_uid: dn, 225 { provider: 'ldapmain', extern_uid: dn }, 226 { provider: 'saml', extern_uid: extern_uid } 230 { provider: id.provider, extern_uid: id.extern_uid } 268 …ties_as_hash = gl_user.identities.map { |id| { provider: id.provider, extern_uid: id.extern_uid } } 297 …s_hash = local_gl_user.identities.map { |id| { provider: id.provider, extern_uid: id.extern_uid } } [all …]
|
H A D | identity_linker_spec.rb | 21 let!(:identity) { user.identities.create!(provider: provider, extern_uid: uid) } 48 expect(user.identities.last.extern_uid).to eq uid
|
/dports/www/gitlab-workhorse/gitlab-foss-0a901d60f8ae4a60c04ae82e6e9c3a03e9321417/app/models/ |
H A D | identity.rb | 18 scope :with_extern_uid, ->(provider, extern_uid) do 19 iwhere(extern_uid: normalize_uid(provider, extern_uid)).with_provider(provider) 22 where.not(extern_uid: nil).with_provider(provider) 40 return if extern_uid.nil? 42 self.extern_uid = Identity.normalize_uid(self.provider, self.extern_uid)
|
/dports/www/gitlab-workhorse/gitlab-foss-0a901d60f8ae4a60c04ae82e6e9c3a03e9321417/spec/models/ |
H A D | identity_spec.rb | 64 …let!(:ldap_identity) { create(:identity, provider: 'ldapmain', extern_uid: 'uid=john smith,ou=peop… 74 let!(:test_entity) { create(:identity, provider: 'test_provider', extern_uid: 'test_uid') } 86 let!(:test_entity) { create(:identity, provider: 'test_provider', extern_uid: 'test_uid') } 96 let!(:nil_entity) { create(:identity, provider: 'nil_entity_provider', extern_uid: nil) } 117 …let!(:ldap_identity) { create(:identity, provider: 'ldapmain', extern_uid: 'uid=john smith,ou=peop… 127 ldap_identity.update!(extern_uid: nil) 129 expect(ldap_identity.extern_uid).to be_nil 133 ldap_identity.update!(extern_uid: 'uid=john1,ou=PEOPLE,dc=example,dc=com') 135 expect(ldap_identity.extern_uid).to eq 'uid=john1,ou=people,dc=example,dc=com' 142 …let(:ldap_identity) { create(:identity, provider: 'ldapmain', extern_uid: 'uid=john smith,ou=peopl…
|
/dports/www/gitlab-workhorse/gitlab-foss-0a901d60f8ae4a60c04ae82e6e9c3a03e9321417/spec/controllers/ |
H A D | omniauth_callbacks_controller_spec.rb | 9 let(:user) { create(:omniauth_user, extern_uid: extern_uid, provider: provider) } 208 … let(:user) { create(:omniauth_user, :two_factor, extern_uid: 'my-uid', provider: provider) } 289 let(:user) { create(:atlassian_user, extern_uid: extern_uid) } 372 let(:user) { create(:omniauth_user, :two_factor, extern_uid: 'my-uid', provider: 'saml') } 390 let(:user) { create(:omniauth_user, extern_uid: 'my-uid', provider: 'saml') } 484 let(:user) { create(:omniauth_user, extern_uid: 'my-uid', provider: 'saml') } 502 let(:user) { create(:omniauth_user, extern_uid: extern_uid, provider: provider) } 519 mock_auth_hash(provider.to_s, extern_uid, user.email, additional_info: {}) 532 …let(:user) { create(:omniauth_user, extern_uid: extern_uid, provider: provider, access_level: :adm… 558 … let(:reauth_user) { create(:omniauth_user, extern_uid: reauth_extern_uid, provider: provider) } [all …]
|
/dports/www/gitlab-workhorse/gitlab-foss-0a901d60f8ae4a60c04ae82e6e9c3a03e9321417/spec/lib/gitlab/auth/atlassian/ |
H A D | identity_linker_spec.rb | 10 uid: extern_uid, 29 let!(:identity) { create(:atlassian_identity, user: user, extern_uid: extern_uid) } 45 let!(:identity) { create(:atlassian_identity, extern_uid: extern_uid) }
|
H A D | user_spec.rb | 11 uid: extern_uid, 36 let!(:existing_user) { create(:atlassian_user, extern_uid: extern_uid) }
|
/dports/www/gitlab-workhorse/gitlab-foss-0a901d60f8ae4a60c04ae82e6e9c3a03e9321417/spec/lib/gitlab/auth/ldap/ |
H A D | user_spec.rb | 37 …create(:omniauth_user, extern_uid: 'uid=John Smith,ou=People,dc=example,dc=com', provider: 'ldapma… 47 …create(:omniauth_user, email: 'john@example.com', extern_uid: 'uid=john smith,ou=people,dc=example… 54 …create(:omniauth_user, extern_uid: 'uid=john smith,ou=people,dc=example,dc=com', provider: 'ldapma… 64 … expect(existing_user.ldap_identity.extern_uid).to eql 'uid=john smith,ou=people,dc=example,dc=com' 69 …existing_user = create(:omniauth_user, email: 'john@example.com', extern_uid: 'old-uid', provider:… 73 … expect(existing_user.ldap_identity.extern_uid).to eql 'uid=john smith,ou=people,dc=example,dc=com' 79 …existing_user = create(:omniauth_user, email: 'john@example.com', extern_uid: 'old-uid', provider:… 83 … expect(existing_user.ldap_identity.extern_uid).to eql 'uid=john smith,ou=people,dc=example,dc=com'
|
/dports/www/gitlab-workhorse/gitlab-foss-0a901d60f8ae4a60c04ae82e6e9c3a03e9321417/spec/lib/gitlab/external_authorization/ |
H A D | client_spec.rb | 92 extern_uid: 'external id', 100 identities: [{ provider: 'ldapprovider', extern_uid: 'external id' }], 113 create(:identity, provider: provider, extern_uid: "#{provider}_external_id", user: user) 122 { provider: 'twitter', extern_uid: 'twitter_external_id' }, 123 { provider: 'facebook', extern_uid: 'facebook_external_id' }
|
/dports/www/gitlab-workhorse/gitlab-foss-0a901d60f8ae4a60c04ae82e6e9c3a03e9321417/spec/factories/ |
H A D | users.rb | 149 extern_uid { '123456' } 156 extern_uid: evaluator.extern_uid 169 extern_uid { generate(:username) } 173 create(:atlassian_identity, user: user, extern_uid: evaluator.extern_uid)
|
H A D | atlassian_identities.rb | 5 extern_uid { generate(:username) }
|
/dports/www/gitlab-workhorse/gitlab-foss-0a901d60f8ae4a60c04ae82e6e9c3a03e9321417/lib/gitlab/auth/ldap/ |
H A D | access.rb | 51 … if Gitlab::Auth::Ldap::Person.disabled_via_active_directory?(ldap_identity.extern_uid, adapter) 88 Gitlab::Auth::Ldap::Person.find_by_dn(ldap_identity.extern_uid, adapter) 96 "LDAP account \"#{ldap_identity.extern_uid}\" #{reason}, " \ 111 "LDAP account \"#{ldap_identity.extern_uid}\" #{reason}, " \
|
/dports/www/gitlab-workhorse/gitlab-foss-0a901d60f8ae4a60c04ae82e6e9c3a03e9321417/lib/gitlab/external_authorization/ |
H A D | client.rb | 58 …user.identities.map { |identity| { provider: identity.provider, extern_uid: identity.extern_uid } } 62 body[:user_ldap_dn] = @user.ldap_identity.extern_uid
|
/dports/www/gitlab-workhorse/gitlab-foss-0a901d60f8ae4a60c04ae82e6e9c3a03e9321417/spec/support/shared_examples/lib/gitlab/auth/ |
H A D | atlassian_identity_shared_examples.rb | 5 expect(identity.extern_uid).to eq(extern_uid)
|
/dports/www/gitlab-workhorse/gitlab-foss-0a901d60f8ae4a60c04ae82e6e9c3a03e9321417/spec/controllers/admin/ |
H A D | identities_controller_spec.rb | 13 …let(:user) { create(:omniauth_user, provider: 'ldapmain', extern_uid: 'uid=myuser,ou=people,dc=exa… 25 …let(:user) { create(:omniauth_user, provider: 'ldapmain', extern_uid: 'uid=myuser,ou=people,dc=exa…
|
/dports/www/gitlab-workhorse/gitlab-foss-0a901d60f8ae4a60c04ae82e6e9c3a03e9321417/qa/qa/resource/ |
H A D | user.rb | 187 return {} unless extern_uid && provider 190 extern_uid: extern_uid,
|
/dports/www/gitlab-workhorse/gitlab-foss-0a901d60f8ae4a60c04ae82e6e9c3a03e9321417/app/views/admin/identities/ |
H A D | _form.html.haml | 12 = f.label :extern_uid, _("Identifier") 14 = f.text_field :extern_uid, class: 'form-control', required: true
|
/dports/www/gitlab-workhorse/gitlab-foss-0a901d60f8ae4a60c04ae82e6e9c3a03e9321417/spec/lib/gitlab/legacy_github_import/ |
H A D | issue_formatter_spec.rb | 86 gl_user = create(:omniauth_user, extern_uid: octocat.id, provider: 'github') 121 gl_user = create(:omniauth_user, extern_uid: octocat.id, provider: 'github') 133 create(:omniauth_user, extern_uid: octocat.id, provider: 'github')
|
H A D | comment_formatter_spec.rb | 80 gl_user = create(:omniauth_user, extern_uid: octocat.id, provider: 'github') 92 create(:omniauth_user, extern_uid: octocat.id, provider: 'github')
|
/dports/www/gitlab-workhorse/gitlab-foss-0a901d60f8ae4a60c04ae82e6e9c3a03e9321417/spec/controllers/ldap/ |
H A D | omniauth_callbacks_controller_spec.rb | 34 let(:user) { create(:omniauth_user, :two_factor_via_otp, extern_uid: uid, provider: provider) } 90 let(:user) { create(:omniauth_user, :admin, extern_uid: uid, provider: provider) }
|
/dports/www/gitlab-workhorse/gitlab-foss-0a901d60f8ae4a60c04ae82e6e9c3a03e9321417/doc/api/ |
H A D | users.md | 143 {"provider": "github", "extern_uid": "2435223452345"}, 144 {"provider": "bitbucket", "extern_uid": "john.smith"}, 217 {"provider": "github", "extern_uid": "2435223452345"}, 218 {"provider": "bitbucket", "extern_uid": "john.smith"}, 231 GET /users?extern_uid=:extern_uid&provider=:provider 237 GET /users?extern_uid=1234567&provider=github 343 {"provider": "github", "extern_uid": "2435223452345"}, 344 {"provider": "bitbucket", "extern_uid": "john.smith"}, 388 {"provider": "github", "extern_uid": "2435223452345"}, 389 {"provider": "bitbucket", "extern_uid": "john.smith"}, [all …]
|
/dports/www/gitlab-workhorse/gitlab-foss-0a901d60f8ae4a60c04ae82e6e9c3a03e9321417/spec/features/ |
H A D | oauth_login_spec.rb | 34 let(:user) { create(:omniauth_user, extern_uid: uid, provider: provider.to_s) } 35 …let(:two_factor_user) { create(:omniauth_user, :two_factor, extern_uid: uid, provider: provider.to…
|
/dports/www/gitlab-workhorse/gitlab-foss-0a901d60f8ae4a60c04ae82e6e9c3a03e9321417/spec/support/shared_contexts/finders/ |
H A D | users_finder_shared_contexts.rb | 8 let_it_be(:omniauth_user) { create(:omniauth_user, provider: 'twitter', extern_uid: '123456') }
|