forked from External/greenlight
		
	Merge pull request #227 from bruckwubete/bn_launcher_integration
redirect to https in prod for bn_launcher
This commit is contained in:
		@@ -34,7 +34,8 @@ module SessionsHelper
 | 
				
			|||||||
  end
 | 
					  end
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  def omniauth_options(env)
 | 
					  def omniauth_options(env)
 | 
				
			||||||
    gl_redirect_url = env["rack.url_scheme"] + "://" + env["SERVER_NAME"] + ":" + env["SERVER_PORT"]
 | 
					    gl_redirect_url = (Rails.env.production? ? "https" : env["rack.url_scheme"]) + "://" + env["SERVER_NAME"] + ":" +
 | 
				
			||||||
 | 
					        env["SERVER_PORT"]
 | 
				
			||||||
    env['omniauth.strategy'].options[:customer] = parse_customer_name env["SERVER_NAME"]
 | 
					    env['omniauth.strategy'].options[:customer] = parse_customer_name env["SERVER_NAME"]
 | 
				
			||||||
    env['omniauth.strategy'].options[:gl_redirect_url] = gl_redirect_url
 | 
					    env['omniauth.strategy'].options[:gl_redirect_url] = gl_redirect_url
 | 
				
			||||||
    env['omniauth.strategy'].options[:default_callback_url] = Rails.configuration.gl_callback_url
 | 
					    env['omniauth.strategy'].options[:default_callback_url] = Rails.configuration.gl_callback_url
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user