Sha256: 845dadd6bafdc3e7bd8ab366f040f5f33fb8d3593cd12afee44d54122519a2d3

Contents?: true

Size: 471 Bytes

Versions: 8

Compression:

Stored size: 471 Bytes

Contents

class AuthenticationsController < ApplicationController
  before_filter :authenticate_user!, :only => :callback
  skip_before_filter :require_signin_permission!
  layout false

  def callback
    redirect_to session["return_to"] || '/'
  end

  def failure

  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

8 entries across 8 versions & 1 rubygems

Version Path
gds-sso-7.0.0 app/controllers/authentications_controller.rb
gds-sso-6.0.0 app/controllers/authentications_controller.rb
gds-sso-5.0.0 app/controllers/authentications_controller.rb
gds-sso-4.0.0 app/controllers/authentications_controller.rb
gds-sso-3.1.1 app/controllers/authentications_controller.rb
gds-sso-3.1.0 app/controllers/authentications_controller.rb
gds-sso-3.0.5 app/controllers/authentications_controller.rb
gds-sso-3.0.4 app/controllers/authentications_controller.rb