Sha256: 1c1fbcf29be559e038456c36d63272e992b29481868bea8e85de0fb41b574d33

Contents?: true

Size: 466 Bytes

Versions: 6

Compression:

Stored size: 466 Bytes

Contents

module AuthpdsNyu
  module Session
    module Callbacks
      def pds_record_identifier
        (pds_user.opensso.nil?) ? :id : :uid
      end

      def valid_sso_session
        begin
          return @valid_sso_session ||= AuthpdsNyu::Sun::Opensso.new(controller, opensso_url).is_valid?
        rescue Exception => e
          handle_login_exception e
          return false
        end
      end
      alias valid_sso_session? valid_sso_session
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
authpds-nyu-0.2.7 lib/authpds-nyu/session/callbacks.rb
authpds-nyu-0.2.6 lib/authpds-nyu/session/callbacks.rb
authpds-nyu-0.2.5 lib/authpds-nyu/session/callbacks.rb
authpds-nyu-0.2.4 lib/authpds-nyu/session/callbacks.rb
authpds-nyu-0.2.3 lib/authpds-nyu/session/callbacks.rb
authpds-nyu-0.2.2 lib/authpds-nyu/session/callbacks.rb