Commit 3b97460e authored by GitLab Release Tools Bot's avatar GitLab Release Tools Bot

Merge branch...

Merge branch 'security-fix-bypass-email-verification-on-scim-user-creation-via-api-ee' into 'master'

Security fix bypass email verification on scim user creation via api ee

See merge request gitlab/gitlab-ee!1040
parents 60891ae9 dfced477
---
title: Fix bypass email verification when SCIM user is created via API
merge_request:
author:
type: security
......@@ -8,7 +8,7 @@ module EE
IDENTITY_PROVIDER = 'group_saml'
PASSWORD_AUTOMATICALLY_SET = true
SKIP_EMAIL_CONFIRMATION = true
SKIP_EMAIL_CONFIRMATION = false
DEFAULT_ACCESS = :guest
def initialize(group, parsed_hash)
......
......@@ -44,6 +44,15 @@ describe ::EE::Gitlab::Scim::ProvisioningService do
expect(User.find_by(service_params.except(:extern_uid))).to be_a(User)
end
it 'user record requires confirmation' do
service.execute
user = User.find_by(email: service_params[:email])
expect(user).to be_present
expect(user).not_to be_confirmed
end
context 'existing user' do
before do
create(:user, email: 'work@example.com')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment