Sha256: 2e57214a055e3a3d0cc80338ddc68808a02db682c22f592dc7b55408d44082a2

Contents?: true

Size: 532 Bytes

Versions: 9

Compression:

Stored size: 532 Bytes

Contents

module Authpds
  module Session
    module PdsUser
      def pds_user
        begin
          @pds_user ||= Authpds::Exlibris::Pds::BorInfo.new(pds_url, calling_system, pds_handle) unless pds_handle.nil?
          return @pds_user unless @pds_user.nil? or @pds_user.error
        rescue Exception => e
          # Delete the PDS_HANDLE, since this isn't working.
          # controller.cookies.delete(:PDS_HANDLE) unless pds_handle.nil?
          handle_login_exception e
          return nil
        end
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
authpds-0.2.9 lib/authpds/session/pds_user.rb
authpds-0.2.8 lib/authpds/session/pds_user.rb
authpds-0.2.7 lib/authpds/session/pds_user.rb
authpds-0.2.6 lib/authpds/session/pds_user.rb
authpds-0.2.5 lib/authpds/session/pds_user.rb
authpds-0.2.4 lib/authpds/session/pds_user.rb
authpds-0.2.3 lib/authpds/session/pds_user.rb
authpds-0.2.2 lib/authpds/session/pds_user.rb
authpds-0.2.1 lib/authpds/session/pds_user.rb