Sha256: 3852413a8bf09f75aad20a554314eaa4fbd44d0f67b0c83f004918017ebde5d0

Contents?: true

Size: 890 Bytes

Versions: 8

Compression:

Stored size: 890 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

8 entries across 8 versions & 1 rubygems

Version Path
devise_cas_authenticatable-1.0.1 lib/devise_cas_authenticatable/single_sign_out.rb
devise_cas_authenticatable-1.1.4 lib/devise_cas_authenticatable/single_sign_out.rb
devise_cas_authenticatable-1.1.3 lib/devise_cas_authenticatable/single_sign_out.rb
devise_cas_authenticatable-1.1.2 lib/devise_cas_authenticatable/single_sign_out.rb
devise_cas_authenticatable-1.1.1 lib/devise_cas_authenticatable/single_sign_out.rb
devise_cas_authenticatable-1.1.0 lib/devise_cas_authenticatable/single_sign_out.rb
devise_cas_authenticatable-1.0.0 lib/devise_cas_authenticatable/single_sign_out.rb
devise_cas_authenticatable-1.0.0.alpha13 lib/devise_cas_authenticatable/single_sign_out.rb