Sha256: d33ba2ed7cb52ed819ed23a8440d51550a34a8288b961cbd38d752ff1dff98d0

Contents?: true

Size: 1.18 KB

Versions: 12

Compression:

Stored size: 1.18 KB

Contents

module AuthpdsNyu
  # == Overview
  # This gem provides a mechanism for user authentication and authorization via NYU Libraries PDS system.
  # The module extends Authpds and should be compatible with Authpds configuation.
  # It also provides hooks for custom functionality.
  # The documentation below describes NYU specific config methods available.
  #
  # == Config Options Available
  # :opensso_url:: Base OpenSSO url (https://login.nyu.edu:443/sso)
  # :aleph_url:: Aleph url (http://aleph.library.nyu.edu)
  # :aleph_default_adm:: Aleph default ADM (NYU50)
  # :aleph_default_sublibrary:: Aleph default sublibrary (BOBST)
  #
  module Session
    include AuthpdsNyu::Session::CoreAttributes
    include AuthpdsNyu::Session::Aleph
    include AuthpdsNyu::Session::Callbacks

    def self.included(klass)
      klass.class_eval do
        pds_attributes :firstname => "givenname", :lastname => "sn", :email => "email", :primary_institution => "institute"
        remember_me true
        remember_me_for 300
        httponly true
        secure true
        login_inaccessible_url "http://library.nyu.edu/errors/login-library-nyu-edu/"
        extend AuthpdsNyu::Session::Config
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
authpds-nyu-0.2.13 lib/authpds-nyu/session.rb
authpds-nyu-0.2.12 lib/authpds-nyu/session.rb
authpds-nyu-0.2.11 lib/authpds-nyu/session.rb
authpds-nyu-0.2.10 lib/authpds-nyu/session.rb
authpds-nyu-0.2.9 lib/authpds-nyu/session.rb
authpds-nyu-0.2.8 lib/authpds-nyu/session.rb
authpds-nyu-0.2.7 lib/authpds-nyu/session.rb
authpds-nyu-0.2.6 lib/authpds-nyu/session.rb
authpds-nyu-0.2.5 lib/authpds-nyu/session.rb
authpds-nyu-0.2.4 lib/authpds-nyu/session.rb
authpds-nyu-0.2.3 lib/authpds-nyu/session.rb
authpds-nyu-0.2.2 lib/authpds-nyu/session.rb