Migrate to logins using Salsa
- Added
OmniAuth::Builderwith configurations ofdeveloperandgitlabstrategies inDebci::SelfServiceas adding it here enables to use/user/auth/gitlabas route for Salsa Authentication. - Added
debci_salsa_client_idanddebci_salsa_client_secretentry tolib/environment.shandDebci::Configto specify these values forOmniAuth::Builder. - Added routes
/auth/gitlab/callback,/auth/failureto handle callback from Salsa. - Added route
/auth/developer/callbackto handle login callback in developer environment. - Added
login.erbwith both options ofLogin using SalsaandLogin in Developer Environment(only present in developer environment) for/user/loginroute and updated/user/loginaccordingly. - Added
ruby-omniauth-gitlabindebian/control. - Updated
loginfunction inself_service_spec.rbto login with the use ofmock authentication hash. - Added migration file to add column
salsa_idto users table which is used to create new user record now and usernames are updated accordingly. - removed definition of
read_request_userinapp.rbsince its no longer required. - Update in
spec/spec_helper.rbto turn on test mode forOmniAuth. - Updated tests in
spec/debci/api.rbandspec/debci/self_service_spec.rbfor new changes.
Edited by Pavit Kaur