Module: Authpds::Session::Config

Defined in:
lib/authpds/session.rb

Instance Method Summary collapse

Instance Method Details

#anonymous(value = nil) ⇒ Object Also known as: anonymous=

Does the system allow anonymous access?



106
107
108
# File 'lib/authpds/session.rb', line 106

def anonymous(value = nil)
  rw_config(:anonymous, value, true)
end

#calling_system(value = nil) ⇒ Object Also known as: calling_system=

Name of the system



100
101
102
# File 'lib/authpds/session.rb', line 100

def calling_system(value = nil)
  rw_config(:calling_system, value, "authpds")
end

#login_inaccessible_url(value = nil) ⇒ Object

Custom url to redirect to in case of system outage



124
125
126
# File 'lib/authpds/session.rb', line 124

def (value = nil)
  rw_config(:login_inaccessible_url, value, "")
end

#pds_attributes(value = nil) ⇒ Object Also known as: pds_attributes=

Mapping of PDS attributes



112
113
114
# File 'lib/authpds/session.rb', line 112

def pds_attributes(value = nil)
  rw_config(:pds_attributes, value, {:id => "id", :email => "email", :firstname => "name", :lastname => "name" })
end

#pds_record_identifier(value = nil) ⇒ Object Also known as: pds_record_identifier=

PDS user method to call to identify record



130
131
132
# File 'lib/authpds/session.rb', line 130

def pds_record_identifier(value = nil)
  rw_config(:pds_record_identifier, value, :id)
end

#pds_url(value = nil) ⇒ Object Also known as: pds_url=

Base pds url



94
95
96
# File 'lib/authpds/session.rb', line 94

def pds_url(value = nil)
  rw_config(:pds_url, value)
end

#redirect_logout_url(value = nil) ⇒ Object Also known as: redirect_logout_url=

Custom redirect logout url



118
119
120
# File 'lib/authpds/session.rb', line 118

def redirect_logout_url(value = nil)
  rw_config(:redirect_logout_url, value, "")
end