Sha256: ed9f055aff838f3b87c3ba04d8417754ee56f0c4e6ea1f65a6c2d24889453de3
Contents?: true
Size: 385 Bytes
Versions: 2
Compression:
Stored size: 385 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 GDS::SSO::Config.oauth_root_url + "/users/sign_out" end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
gds-sso-0.5.1 | app/controllers/authentications_controller.rb |
gds-sso-0.5.0 | app/controllers/authentications_controller.rb |