Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
dfced477
Commit
dfced477
authored
Jun 25, 2019
by
Adam Hegyi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Send verify email for users created via SCIM API
parent
d9a4ef1c
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
1 deletion
+15
-1
ee/changelogs/unreleased/security-fix-bypass-email-verification-on-scim-user-creation-via-api-ee.yml
...s-email-verification-on-scim-user-creation-via-api-ee.yml
+5
-0
ee/lib/ee/gitlab/scim/provisioning_service.rb
ee/lib/ee/gitlab/scim/provisioning_service.rb
+1
-1
ee/spec/lib/ee/gitlab/scim/provisioning_service_spec.rb
ee/spec/lib/ee/gitlab/scim/provisioning_service_spec.rb
+9
-0
No files found.
ee/changelogs/unreleased/security-fix-bypass-email-verification-on-scim-user-creation-via-api-ee.yml
0 → 100644
View file @
dfced477
---
title
:
Fix bypass email verification when SCIM user is created via API
merge_request
:
author
:
type
:
security
ee/lib/ee/gitlab/scim/provisioning_service.rb
View file @
dfced477
...
@@ -8,7 +8,7 @@ module EE
...
@@ -8,7 +8,7 @@ module EE
IDENTITY_PROVIDER
=
'group_saml'
IDENTITY_PROVIDER
=
'group_saml'
PASSWORD_AUTOMATICALLY_SET
=
true
PASSWORD_AUTOMATICALLY_SET
=
true
SKIP_EMAIL_CONFIRMATION
=
tru
e
SKIP_EMAIL_CONFIRMATION
=
fals
e
DEFAULT_ACCESS
=
:guest
DEFAULT_ACCESS
=
:guest
def
initialize
(
group
,
parsed_hash
)
def
initialize
(
group
,
parsed_hash
)
...
...
ee/spec/lib/ee/gitlab/scim/provisioning_service_spec.rb
View file @
dfced477
...
@@ -44,6 +44,15 @@ describe ::EE::Gitlab::Scim::ProvisioningService do
...
@@ -44,6 +44,15 @@ describe ::EE::Gitlab::Scim::ProvisioningService do
expect
(
User
.
find_by
(
service_params
.
except
(
:extern_uid
))).
to
be_a
(
User
)
expect
(
User
.
find_by
(
service_params
.
except
(
:extern_uid
))).
to
be_a
(
User
)
end
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
context
'existing user'
do
before
do
before
do
create
(
:user
,
email:
'work@example.com'
)
create
(
:user
,
email:
'work@example.com'
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment