Module: Authpds::Session::Config
- Defined in:
- lib/authpds/session.rb
Instance Method Summary collapse
-
#anonymous(value = nil) ⇒ Object
(also: #anonymous=)
Does the system allow anonymous access?.
-
#calling_system(value = nil) ⇒ Object
(also: #calling_system=)
Name of the system.
-
#institution_param_key(value = nil) ⇒ Object
(also: #institution_param_key=)
Querystring parameter key for the institution value.
-
#login_inaccessible_url(value = nil) ⇒ Object
Custom url to redirect to in case of system outage.
-
#pds_attributes(value = nil) ⇒ Object
(also: #pds_attributes=)
Mapping of PDS attributes.
-
#pds_record_identifier(value = nil) ⇒ Object
(also: #pds_record_identifier=)
PDS user method to call to identify record.
-
#pds_url(value = nil) ⇒ Object
(also: #pds_url=)
Base pds url.
-
#redirect_logout_url(value = nil) ⇒ Object
(also: #redirect_logout_url=)
Custom redirect logout url.
-
#validate_url_name(value = nil) ⇒ Object
(also: #validate_url_name=)
URL name for validation action.
Instance Method Details
#anonymous(value = nil) ⇒ Object Also known as: anonymous=
Does the system allow anonymous access?
68 69 70 |
# File 'lib/authpds/session.rb', line 68 def anonymous(value = nil) rw_config(:anonymous, value, true) end |
#calling_system(value = nil) ⇒ Object Also known as: calling_system=
Name of the system
62 63 64 |
# File 'lib/authpds/session.rb', line 62 def calling_system(value = nil) rw_config(:calling_system, value, "authpds") end |
#institution_param_key(value = nil) ⇒ Object Also known as: institution_param_key=
Querystring parameter key for the institution value
99 100 101 |
# File 'lib/authpds/session.rb', line 99 def institution_param_key(value = nil) rw_config(:institution_param_key, value, "institute") end |
#login_inaccessible_url(value = nil) ⇒ Object
Custom url to redirect to in case of system outage
87 88 89 |
# File 'lib/authpds/session.rb', line 87 def login_inaccessible_url(value = nil) rw_config(:login_inaccessible_url, value, "") end |
#pds_attributes(value = nil) ⇒ Object Also known as: pds_attributes=
Mapping of PDS attributes
74 75 76 77 |
# File 'lib/authpds/session.rb', line 74 def pds_attributes(value = nil) value.each_value { |pds_attr| pds_attr.gsub!("-", "_") } unless value.nil? rw_config(:pds_attributes, value, {:email => "email", :firstname => "name", :lastname => "name", :primary_institution => "institute" }) end |
#pds_record_identifier(value = nil) ⇒ Object Also known as: pds_record_identifier=
PDS user method to call to identify record
93 94 95 |
# File 'lib/authpds/session.rb', line 93 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
56 57 58 |
# File 'lib/authpds/session.rb', line 56 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
81 82 83 |
# File 'lib/authpds/session.rb', line 81 def redirect_logout_url(value = nil) rw_config(:redirect_logout_url, value, "") end |
#validate_url_name(value = nil) ⇒ Object Also known as: validate_url_name=
URL name for validation action
105 106 107 |
# File 'lib/authpds/session.rb', line 105 def validate_url_name(value = nil) rw_config(:validate_url_name, value, "validate_url") end |