mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: redirect users to SSO client URL after social login
This commit is contained in:
@@ -33,7 +33,9 @@ class Users::OmniauthCallbacksController < ApplicationController
|
||||
|
||||
origin = request.env['omniauth.origin']
|
||||
|
||||
if cookies[:destination_url].present?
|
||||
if SiteSetting.enable_sso_provider && payload = cookies.delete(:sso_payload)
|
||||
origin = session_sso_provider_url + "?" + payload
|
||||
elsif cookies[:destination_url].present?
|
||||
origin = cookies[:destination_url]
|
||||
cookies.delete(:destination_url)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user