Sha256: 62feb708050dc2dfd4ef3441842d5dac0ac57ed1eabcb3f993467273decf5c91

Contents?: true

Size: 720 Bytes

Versions: 9

Compression:

Stored size: 720 Bytes

Contents

module Authpds
  module Session
    module Callbacks
      # Hook for more complicated logic to determine PDS user record identifier
      def pds_record_identifier
        @pds_record_identifier ||= self.class.pds_record_identifier
      end

      # Hook to determine if we should set up an SSO session
      def valid_sso_session?
        return false
      end

      # Hook to provide additional authorization requirements
      def additional_authorization
        return true
      end

      # Hook to add additional user attributes.
      def additional_attributes
        {}
      end

      # Hook to update expiration date if necessary
      def expiration_date
        1.week.ago
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

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