1 # Copyright (C) The Arvados Authors. All rights reserved.
3 # SPDX-License-Identifier: AGPL-3.0
5 class SessionsController < ApplicationController
6 skip_around_action :require_thread_api_token, :only => [:destroy, :logged_out]
7 skip_around_action :set_thread_api_token, :only => [:destroy, :logged_out]
8 skip_before_action :find_object_by_uuid
9 skip_before_action :find_objects_for_index, raise: false
10 skip_before_action :ensure_arvados_api_exists
14 redirect_to arvados_api_client.arvados_logout_url(return_to: root_url)
18 redirect_to root_url if session[:arvados_api_token]