Bypass signup domain validation for external users
What does this MR do?
Bypass signup domain validation when adding an external user
Are there points in the code the reviewer needs to double check?
Why was this MR needed?
From #25279 (closed)
When a company has a hosted GitLab, it makes sense to Whitelist the company domain to ensure that only users (in this case coming through google oauth) from the company are able to gain access. However, this also blocks an admin when creating a new external user.
Does this MR meet the acceptance criteria?
-
Changelog entry added -
Documentation created/updated -
API support added - Tests
-
Added for this feature/bug -
All builds are passing
-
-
Conform by the merge request performance guides -
Conform by the style guides -
Branch has no merge conflicts with master
(if it does - rebase it please) -
Squashed related commits together
What are the relevant issue numbers?
Merge request reports
Activity
- Resolved by username-removed-423915
- Resolved by username-removed-87366
- Resolved by username-removed-87366
@remohammadi Thank you for the contribution, could you please also add a corresponding test in
spec/models/user_spec.rb
? Please search forwhen no signup domains whitelisted
for relevant tests.assigned to @remohammadi
mentioned in issue #27028 (moved)
added 575 commits
-
5de37cc7...8a9597fc - 574 commits from branch
gitlab-org:master
- eb885f0d - Bypass signup domain validation for external users
-
5de37cc7...8a9597fc - 574 commits from branch
added 8 commits
-
eb885f0d...1fe80c29 - 7 commits from branch
gitlab-org:master
- 5c7dbce8 - Bypass signup domain validation for external users
-
eb885f0d...1fe80c29 - 7 commits from branch
I've added some tests for these changes. @godfat
assigned to @godfat
- Resolved by username-removed-87366
@remohammadi Sorry for the delay. I was ill and then hitting into holidays. Looks great to me, thank you! I left a minor comment about the phrasing.
@rspeicher Could you please take the final review? Thanks!
assigned to @rspeicher
added 562 commits
-
5c7dbce8...25bb3922 - 561 commits from branch
gitlab-org:master
- 339cac4b - Bypass signup domain validation for external users
-
5c7dbce8...25bb3922 - 561 commits from branch
- Resolved by username-removed-87366
- Resolved by username-removed-87366
- Resolved by username-removed-87366
- Resolved by username-removed-87366
- Resolved by username-removed-87366
@remohammadi Just a couple spec quibbles. Thanks!
assigned to @remohammadi
added 543 commits
-
339cac4b...a965edb8 - 542 commits from branch
gitlab-org:master
- 48bb5299 - Bypass signup domain validation for external users
-
339cac4b...a965edb8 - 542 commits from branch
@rspeicher
Fixed all of them except "not-allowed".- Resolved by username-removed-87366
@remohammadi Responded to your point, thanks!
added 132 commits
-
48bb5299...bbb7fbcd - 131 commits from branch
gitlab-org:master
- d9ee55ee - Bypass signup domain validation for external users
-
48bb5299...bbb7fbcd - 131 commits from branch
assigned to @rspeicher
changed milestone to %9.0
mentioned in commit b28d66c3
@remohammadi Thanks!
mentioned in issue #3202 (closed)
mentioned in issue gitlab#7899