Vendor omniauth_crowd gem
What does this MR do and why?
- Our ultimate goal is to upgrade
omniauthto v2.0. See the related issue - In order to upgrade
omniauthto v2.0, we need to upgradeomniauth_crowdbecause the latter has a dependency on the former. - There is an open issue asking the maintainer to make
omniauth_crowdcompatible withomniauthv2.0 but it has not been responded to: https://github.com/robdimarco/omniauth_crowd/issues/37 - This MR vendors the gem and updates its
.gemspecfile so that it is compatible withomniauthv2.0 - We may deprecate our usage of this gem in the future (issue)
- This MR inspired by approach in !90866 (merged)
Screenshots or screen recordings
successful oauth login with Crowd using code in this branch (locally):

How to set up and validate locally
- Download Crowd and set up local server: https://confluence.atlassian.com/crowd/installing-crowd-24248834.html
- Configure a Crowd application in your local Crowd instance to point to your local GitLab instance (
http://localhost:3000): https://docs.gitlab.com/ee/administration/auth/crowd.html#configure-a-new-crowd-application - Set up your local GitLab instance to work with Crowd OAuth by editing
config/gitlab.yml'sdevelopment/omniauthconfig. The defaultcrowd_server_urlfor a local instance would be'http://localhost:8095/crowd'(the remaining config should match what you set up for your Crowd application in Step 2). Also setallow_single_sign_on: truein this file so that user accounts can be created automatically when authentication is successful. - Log into your local GitLab instance as an administrator and visit Admin > Settings > General and uncheck the box "Require admin approvals for new sign-ups" (so that a Crowd OAuth user can sign in / up)
- Select the "Crowd" tab at
http://127.0.0.1:3000/users/sign_inand sign in as your Crowd user.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Jessie Young