Skip to content
Snippets Groups Projects

Enable SSO and ensure trial registrations perform onboarding steps

Merged Doug Stull requested to merge 404926-add-sso-onboarding-specs into master
All threads resolved!
Compare and Show latest version
11 files
+ 139
23
Compare changes
  • Side-by-side
  • Inline
Files
11
@@ -19,7 +19,10 @@ def handle_omniauth
end
AuthHelper.providers_for_base_controller.each do |provider|
alias_method provider, :handle_omniauth
define_method(provider) do
set_registration_tasks if intent_to_register?
omniauth_flow(Gitlab::Auth::OAuth)
end
end
# overridden in EE
@@ -314,6 +317,10 @@ def perform_registration_tasks(_user)
store_location_for(:user, after_sign_up_path)
end
def set_registration_tasks
# no-op override in ee
end
def after_sign_up_path
users_sign_up_welcome_path
end
Loading