Sha256: 009a941095e750f7cf25a9898f3d2aae403c7f835b674cf10cbe0e30ad7c99f4

Contents?: true

Size: 1.16 KB

Versions: 7

Compression:

Stored size: 1.16 KB

Contents

# Copyright © 2012 The Pennsylvania State University
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.


#TODO I think this can just be in the PSU version of scholarsphere

class SessionsController < ApplicationController
  def destroy
    # make any local additions here (e.g. expiring local sessions, etc.)
    # adapted from here: http://cosign.git.sourceforge.net/git/gitweb.cgi?p=cosign/cosign;a=blob;f=scripts/logout/logout.php;h=3779248c754001bfa4ea8e1224028be2b978f3ec;hb=HEAD

    cookies.delete(request.env['COSIGN_SERVICE']) if request.env['COSIGN_SERVICE']
    redirect_to Sufia::Engine.config.logout_url
  end

  def new
    redirect_to Sufia::Engine.config.login_url
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
sufia-0.0.5 app/controllers/sessions_controller.rb
sufia-0.0.4 app/controllers/sessions_controller.rb
sufia-0.0.3 app/controllers/sessions_controller.rb
sufia-0.0.2 app/controllers/sessions_controller.rb
sufia-0.0.1 app/controllers/sessions_controller.rb
sufia-0.0.1.pre2 app/controllers/sessions_controller.rb
sufia-0.0.1.pre1 app/controllers/sessions_controller.rb