services/api/app/controllers/user_sessions_controller.rb
# logout - Clear our rack session BUT essentially redirect to the provider
# to clean up the Devise session from there too !
Clear our rack session BUT essentially redirect to the provider
to clean up the Devise session from there too !
Clear our rack session BUT essentially redirect to the provider to clean up the Devise session from there too !
def logout
    session[:user_id] = nil
    flash[:notice] = 'You have logged off'
    return_to = params[:return_to] || root_url
    redirect_to "#{Rails.configuration.Services.SSO.ExternalURL}/users/sign_out?redirect_uri=#{CGI.escape return_to}"
  end
def logout session [ :user_id ] = nil flash [ :notice ] = 'You have logged off' return_to = params [ :return_to ] || root_url redirect_to "#{Rails.configuration.Services.SSO.ExternalURL}/users/sign_out?redirect_uri=#{CGI.escape return_to}" end
logout - Clear our rack session BUT essentially redirect to the provider
to clean up the Devise session from there too !
logout - Clear our rack session BUT essentially redirect to the provider to clean up the Devise session from there too !