Skip to content
Snippets Groups Projects

Bypass signup domain validation for external users

All threads resolved!

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?

What are the relevant issue numbers?

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • @remohammadi Thank you for the contribution, could you please also add a corresponding test in spec/models/user_spec.rb? Please search for when no signup domains whitelisted for relevant tests.

  • username-removed-423915 added ~164274 ~15078 ~17488 labels

    added ~164274 ~15078 ~17488 labels

  • username-removed-87366 marked as a Work In Progress

    marked as a Work In Progress

  • mentioned in issue #27028 (moved)

  • added 575 commits

    Compare with previous version

  • added 8 commits

    Compare with previous version

  • username-removed-87366 marked the task Added for this feature/bug as completed

    marked the task Added for this feature/bug as completed

  • I've added some tests for these changes. @godfat

  • username-removed-87366 unmarked as a Work In Progress

    unmarked as a Work In Progress

  • username-removed-128633 added ~480950 and removed ~15078 labels

    added ~480950 and removed ~15078 labels

  • username-removed-87366 resolved all discussions

    resolved all discussions

  • @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!

  • added 562 commits

    Compare with previous version

  • username-removed-87366 resolved all discussions

    resolved all discussions

  • @remohammadi Just a couple spec quibbles. Thanks! :thumbsup:

  • added 543 commits

    Compare with previous version

  • @rspeicher :pray: Fixed all of them except "not-allowed".

  • @remohammadi Responded to your point, thanks!

  • added 132 commits

    Compare with previous version

  • username-removed-87366 resolved all discussions

    resolved all discussions

  • Robert Speicher changed milestone to %9.0

    changed milestone to %9.0

  • Robert Speicher mentioned in commit b28d66c3

    mentioned in commit b28d66c3

  • mentioned in issue #3202 (closed)

  • mentioned in issue gitlab#7899

  • Please register or sign in to reply
    Loading