Sha256: 062bd5146cedabb5a098acfd1252f3cf1160d8ac023783f95bc935041f42396d

Contents?: true

Size: 883 Bytes

Versions: 5

Compression:

Stored size: 883 Bytes

Contents

module DeviseCasAuthenticatable
  module SingleSignOut
    module SetSession
      def set_session_with_storage(env, sid, session_data, options={})
        if session_data['cas_last_valid_ticket_store']
          ::DeviseCasAuthenticatable::SingleSignOut::Strategies.current_strategy.store_session_id_for_index(session_data['cas_last_valid_ticket'], sid)
          session_data['cas_last_valid_ticket_store'] = nil
        end

        if method(:set_session_without_storage).arity == 4
          set_session_without_storage(env, sid, session_data, options)
        else
          set_session_without_storage(env, sid, session_data)
        end
      end
    end
  end
end

require 'devise_cas_authenticatable/single_sign_out/strategies'
require 'devise_cas_authenticatable/single_sign_out/strategies/base'
require 'devise_cas_authenticatable/single_sign_out/strategies/rails_cache'

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
devise_cloudfuji_authenticatable-1.0.5 lib/devise_cas_authenticatable/single_sign_out.rb
devise_cloudfuji_authenticatable-1.0.4 lib/devise_cas_authenticatable/single_sign_out.rb
devise_bushido_authenticatable-1.0.3 lib/devise_cas_authenticatable/single_sign_out.rb
devise_bushido_authenticatable-1.0.2 lib/devise_cas_authenticatable/single_sign_out.rb
devise_bushido_authenticatable-1.0.1 lib/devise_cas_authenticatable/single_sign_out.rb