1 # Copyright (C) The Arvados Authors. All rights reserved.
3 # SPDX-License-Identifier: AGPL-3.0
5 class SessionsController < ApplicationController
6 skip_around_filter :require_thread_api_token, :only => [:destroy, :logged_out]
7 skip_around_filter :set_thread_api_token, :only => [:destroy, :logged_out]
8 skip_before_filter :find_object_by_uuid
9 skip_before_filter :find_objects_for_index
10 skip_before_filter :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]