Sha256: 357119aac8bb958d58c6f53d95fa4589b11a2eef376a7f46ad17819007e0a674

Contents?: true

Size: 727 Bytes

Versions: 4

Compression:

Stored size: 727 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 attempt to establish a PDS session
      def attempt_sso?
        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

4 entries across 4 versions & 1 rubygems

Version Path
authpds-1.1.2 lib/authpds/session/callbacks.rb
authpds-1.1.1 lib/authpds/session/callbacks.rb
authpds-1.1.0 lib/authpds/session/callbacks.rb
authpds-1.0.0 lib/authpds/session/callbacks.rb