Sha256: 53726c44c852d9a151d658cab167be1d3e22ca25d951d69844859d59fb899791
Contents?: true
Size: 386 Bytes
Versions: 3
Compression:
Stored size: 386 Bytes
Contents
class AuthenticationsController < ApplicationController before_filter :authenticate_user!, :only => :callback def callback redirect_to session["return_to"] || '/' end def sign_out cookie_key = Rails.application.config.session_options[:key] cookies.delete(cookie_key) reset_session redirect_to Plek.current.find('signonotron') + "/users/sign_out" end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
gds-sso-0.4.3 | app/controllers/authentications_controller.rb |
gds-sso-0.4.2 | app/controllers/authentications_controller.rb |
gds-sso-0.4.1 | app/controllers/authentications_controller.rb |