authpds 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.rdoc +1 -3
- data/Rakefile +1 -2
- data/lib/authpds.rb +4 -14
- data/lib/authpds/acts_as_authentic.rb +3 -60
- data/lib/authpds/acts_as_authentic/core_attributes.rb +24 -0
- data/lib/authpds/acts_as_authentic/expiration.rb +19 -0
- data/lib/authpds/acts_as_authentic/institutions_attributes.rb +34 -0
- data/lib/authpds/controllers/authpds_controller.rb +3 -61
- data/lib/authpds/controllers/authpds_controller/core_attributes.rb +24 -0
- data/lib/authpds/controllers/authpds_controller/institution_attributes.rb +54 -0
- data/lib/authpds/controllers/authpds_controller/url_handling.rb +18 -0
- data/lib/authpds/controllers/authpds_sessions_controller.rb +0 -1
- data/lib/authpds/session.rb +15 -247
- data/lib/authpds/session/authentication.rb +24 -0
- data/lib/authpds/session/authlogic_callbacks.rb +12 -0
- data/lib/authpds/session/authorization.rb +16 -0
- data/lib/authpds/session/callbacks.rb +30 -0
- data/lib/authpds/session/config.rb +60 -0
- data/lib/authpds/session/core_attributes.rb +45 -0
- data/lib/authpds/session/exception_handling.rb +22 -0
- data/lib/authpds/session/institution_attributes.rb +15 -0
- data/lib/authpds/session/pds_user.rb +17 -0
- data/lib/authpds/session/record.rb +32 -0
- data/lib/authpds/session/url_handling.rb +55 -0
- data/lib/authpds/version.rb +1 -1
- data/test/{unit/authpds_controller_test.rb → authpds_controller_test.rb} +19 -11
- data/test/{unit/authpds_user_sessions_controller_test.rb → authpds_user_sessions_controller_test.rb} +3 -1
- data/test/fixtures/users.yml +2 -2
- data/test/pds_test.rb +83 -0
- data/test/support/config/institutions.yml +4 -4
- data/test/test_helper.rb +10 -4
- data/test/{unit/user_session_test.rb → user_session_test.rb} +34 -28
- data/test/{unit/user_test.rb → user_test.rb} +2 -2
- data/test/vcr_cassettes/bor_info_valid_newschool.yml +35 -0
- data/test/vcr_cassettes/bor_info_valid_nyu.yml +40 -0
- data/test/vcr_cassettes/get_attribute_authenticate.yml +36 -0
- data/test/vcr_cassettes/get_attribute_bor_id.yml +32 -0
- data/test/vcr_cassettes/get_attribute_bor_info.yml +40 -0
- data/test/vcr_cassettes/get_attribute_bor_verification.yml +32 -0
- data/test/vcr_cassettes/get_attribute_invalid_bor_info.yml +33 -0
- data/test/vcr_cassettes/invalid_bor_info.yml +33 -0
- data/test/vcr_cassettes/nyu.yml +40 -0
- metadata +104 -21
- data/test/unit/pds_test.rb +0 -62
@@ -1,5 +1,5 @@
|
|
1
1
|
NYU:
|
2
|
-
|
2
|
+
auth:
|
3
3
|
link_code: NYU
|
4
4
|
logout_url: 'http://bobcat.library.nyu.edu'
|
5
5
|
default: false
|
@@ -25,7 +25,7 @@ NYUAD:
|
|
25
25
|
- 128.122.0.1
|
26
26
|
|
27
27
|
NYSID:
|
28
|
-
|
28
|
+
auth:
|
29
29
|
link_code: NYSID
|
30
30
|
logout_url: 'http://bobcat.library.nyu.edu/nysid'
|
31
31
|
default: false
|
@@ -37,7 +37,7 @@ NYSID:
|
|
37
37
|
- 128.122.0.1
|
38
38
|
|
39
39
|
CU:
|
40
|
-
|
40
|
+
auth:
|
41
41
|
link_code: CU
|
42
42
|
logout_url: 'http://bobcat.library.nyu.edu/cooper'
|
43
43
|
display_name: Cooper Union Library
|
@@ -48,7 +48,7 @@ CU:
|
|
48
48
|
- 199.98.16.0-199.98.31.255
|
49
49
|
|
50
50
|
NS:
|
51
|
-
|
51
|
+
auth:
|
52
52
|
link_code: NS
|
53
53
|
logout_url: 'http://bobcat.library.nyu.edu/newschool'
|
54
54
|
display_name: New School Libraries
|
data/test/test_helper.rb
CHANGED
@@ -1,7 +1,8 @@
|
|
1
|
+
require 'rubygems'
|
1
2
|
require 'authlogic'
|
2
3
|
require 'authlogic/test_case'
|
3
4
|
require "test/unit"
|
4
|
-
require
|
5
|
+
require "vcr"
|
5
6
|
require "active_record"
|
6
7
|
require "active_record/fixtures"
|
7
8
|
# Configure Rails Environment
|
@@ -40,9 +41,14 @@ end
|
|
40
41
|
require File.dirname(__FILE__) + '/../lib/authpds'
|
41
42
|
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
|
42
43
|
|
44
|
+
VCR.configure do |c|
|
45
|
+
c.cassette_library_dir = 'test/vcr_cassettes'
|
46
|
+
c.hook_into :webmock # or :fakeweb
|
47
|
+
end
|
48
|
+
|
43
49
|
class ActiveSupport::TestCase
|
44
|
-
VALID_PDS_HANDLE_FOR_NYU = '
|
45
|
-
VALID_PDS_HANDLE_FOR_NEWSCHOOL = '
|
50
|
+
VALID_PDS_HANDLE_FOR_NYU = '12112012141859298424685706599355'
|
51
|
+
VALID_PDS_HANDLE_FOR_NEWSCHOOL = '12112012151951298522252282669924'
|
46
52
|
VALID_PDS_HANDLE_FOR_COOPER = '272201212284614806184193096120278'
|
47
53
|
INVALID_PDS_HANDLE = "Invalid"
|
48
54
|
SESSION_ID = "qwertyuiopasdfghjkllzxcvbnm1234567890"
|
@@ -52,7 +58,7 @@ class ActiveSupport::TestCase
|
|
52
58
|
self.use_transactional_fixtures = false
|
53
59
|
self.use_instantiated_fixtures = false
|
54
60
|
self.pre_loaded_fixtures = false
|
55
|
-
fixtures :
|
61
|
+
fixtures :users
|
56
62
|
setup :activate_authlogic
|
57
63
|
end
|
58
64
|
|
@@ -10,7 +10,7 @@ class UserSessionTest < ActiveSupport::TestCase
|
|
10
10
|
test "login_url" do
|
11
11
|
user_session = UserSession.new
|
12
12
|
assert_equal(
|
13
|
-
"https://logindev.library.nyu.edu/pds?func=load-login&
|
13
|
+
"https://logindev.library.nyu.edu/pds?func=load-login&calling_system=authpds&url=http%3A%2F%2Frailsapp.library.nyu.edu%2Fvalidate%3Freturn_url%3D",
|
14
14
|
user_session.login_url)
|
15
15
|
end
|
16
16
|
|
@@ -24,7 +24,7 @@ class UserSessionTest < ActiveSupport::TestCase
|
|
24
24
|
test "sso_url" do
|
25
25
|
user_session = UserSession.new
|
26
26
|
assert_equal(
|
27
|
-
"https://logindev.library.nyu.edu/pds?func=sso&
|
27
|
+
"https://logindev.library.nyu.edu/pds?func=sso&calling_system=authpds&url=http%3A%2F%2Frailsapp.library.nyu.edu%2Fvalidate%3Freturn_url%3D",
|
28
28
|
user_session.sso_url)
|
29
29
|
end
|
30
30
|
|
@@ -47,20 +47,22 @@ class UserSessionTest < ActiveSupport::TestCase
|
|
47
47
|
|
48
48
|
test "pds_user" do
|
49
49
|
user_session = UserSession.new
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
50
|
+
VCR.use_cassette('nyu') do
|
51
|
+
pds_user = user_session.pds_user
|
52
|
+
assert_instance_of(Authpds::Exlibris::Pds::BorInfo, pds_user)
|
53
|
+
assert_equal("N12162279", pds_user.id)
|
54
|
+
assert_equal("N12162279", pds_user.nyuidn)
|
55
|
+
assert_equal("51", pds_user.bor_status)
|
56
|
+
assert_equal("CB", pds_user.bor_type)
|
57
|
+
assert_equal("SCOT THOMAS", pds_user.name)
|
58
|
+
assert_equal("SCOT THOMAS", pds_user.givenname)
|
59
|
+
assert_equal("DALTON", pds_user.sn)
|
60
|
+
assert_equal("Y", pds_user.ill_permission)
|
61
|
+
assert_equal("GA", pds_user.college_code)
|
62
|
+
assert_equal("CSCI", pds_user.dept_code)
|
63
|
+
assert_equal("Information Systems", pds_user.major)
|
64
|
+
assert_equal("NYU", pds_user.institute)
|
65
|
+
end
|
64
66
|
end
|
65
67
|
|
66
68
|
test "persist_session" do
|
@@ -68,12 +70,14 @@ class UserSessionTest < ActiveSupport::TestCase
|
|
68
70
|
assert_nil(controller.session["authpds_credentials"])
|
69
71
|
assert_nil(user_session.send(:attempted_record))
|
70
72
|
assert_nil(user_session.record)
|
71
|
-
|
72
|
-
|
73
|
+
VCR.use_cassette('nyu') do
|
74
|
+
assert_no_difference('User.count') do
|
75
|
+
user_session.send(:persist_session)
|
76
|
+
end
|
77
|
+
assert_not_nil(user_session.send(:attempted_record))
|
78
|
+
assert_nil(user_session.record)
|
79
|
+
assert_equal("N12162279", user_session.send(:attempted_record).username)
|
73
80
|
end
|
74
|
-
assert_not_nil(user_session.send(:attempted_record))
|
75
|
-
assert_nil(user_session.record)
|
76
|
-
assert_equal("N12162279", user_session.send(:attempted_record).username)
|
77
81
|
end
|
78
82
|
|
79
83
|
test "find" do
|
@@ -81,14 +85,16 @@ class UserSessionTest < ActiveSupport::TestCase
|
|
81
85
|
assert_nil(controller.session["authpds_credentials"])
|
82
86
|
assert_nil(user_session.send(:attempted_record))
|
83
87
|
assert_nil(user_session.record)
|
84
|
-
|
88
|
+
VCR.use_cassette('nyu') do
|
89
|
+
assert_difference('User.count') {
|
85
90
|
user_session = UserSession.find
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
91
|
+
}
|
92
|
+
assert_not_nil(controller.session["authpds_credentials"])
|
93
|
+
assert_not_nil(user_session.send(:attempted_record))
|
94
|
+
assert_not_nil(user_session.record)
|
95
|
+
assert_equal(controller.session["authpds_credentials"], user_session.record.persistence_token)
|
96
|
+
assert_equal("N12162279", user_session.record.username)
|
97
|
+
end
|
92
98
|
end
|
93
99
|
|
94
100
|
test "expiration_date" do
|
@@ -37,7 +37,7 @@ class UserSessionTest < ActiveSupport::TestCase
|
|
37
37
|
end
|
38
38
|
|
39
39
|
test "primary_institution" do
|
40
|
-
Institutions.loadpaths<< "#{File.dirname(__FILE__)}
|
40
|
+
Institutions.loadpaths<< "#{File.dirname(__FILE__)}/support/config"
|
41
41
|
user = User.new
|
42
42
|
assert_nothing_raised ArgumentError do
|
43
43
|
user.primary_institution= "NYU"
|
@@ -54,7 +54,7 @@ class UserSessionTest < ActiveSupport::TestCase
|
|
54
54
|
end
|
55
55
|
|
56
56
|
test "institutions" do
|
57
|
-
Institutions.loadpaths<< "#{File.dirname(__FILE__)}
|
57
|
+
Institutions.loadpaths<< "#{File.dirname(__FILE__)}/support/config"
|
58
58
|
user = User.new
|
59
59
|
assert_raise ArgumentError do
|
60
60
|
user.institutions= "NYU"
|
@@ -0,0 +1,35 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://logindev.library.nyu.edu/pds
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: func=get-attribute&attribute=bor_info&calling_system=authpds&pds_handle=12112012151951298522252282669924
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- ! '*/*'
|
12
|
+
User-Agent:
|
13
|
+
- Ruby
|
14
|
+
response:
|
15
|
+
status:
|
16
|
+
code: 200
|
17
|
+
message: OK
|
18
|
+
headers:
|
19
|
+
Date:
|
20
|
+
- Mon, 12 Nov 2012 20:20:52 GMT
|
21
|
+
Server:
|
22
|
+
- Apache/2.2.15 (Unix) mod_ssl/2.2.15 OpenSSL/0.9.8n mod_perl/2.0.4 Perl/v5.8.9
|
23
|
+
Transfer-Encoding:
|
24
|
+
- chunked
|
25
|
+
Content-Type:
|
26
|
+
- text/html; charset=UTF-8
|
27
|
+
body:
|
28
|
+
encoding: US-ASCII
|
29
|
+
string: <?xml version = "1.0" encoding = "UTF-8"?><bor-info><id>N00206454</id><expiry-date>20120420</expiry-date><alpha>L</alpha><birth-date>00000000</birth-date><con-lng>ENG</con-lng><delinq-1>00</delinq-1><delinq-1-update-date>00000000</delinq-1-update-date><delinq-2>00</delinq-2><delinq-2-update-date>00000000</delinq-2-update-date><delinq-3>00</delinq-3><delinq-3-update-date>00000000</delinq-3-update-date><home-library>TNSFO</home-library><id>N00206454</id><name>Jones,
|
30
|
+
Allen</name><name-key>jones allen N00206454</name-key><open-date>20060807</open-date><update-date>20120718</update-date><address-0>Jones,
|
31
|
+
Allen</address-0><address-1>2027 85th Street, No 2</address-1><address-3>Brooklyn</address-3><zip>112143244</zip><bor-status>31</bor-status><expiry-date>20120915</expiry-date><barcode>21207100410084</barcode><bor-status>31</bor-status><bor-type>0</bor-type><name>Allen</name><email>jonesa@newschool.edu</email><cn>Jones,
|
32
|
+
Allen</cn><givenname>Allen</givenname><sn>Jones</sn><verification>JONE</verification><nyuidn>N00206454</nyuidn><ill-permission>Y</ill-permission><college_code></college_code><college_name></college_name><dept_code></dept_code><dept_name></dept_name><major_code></major_code><major></major><email_address>jonesa@newschool.edu</email_address><institute>NS</institute></bor-info>
|
33
|
+
http_version:
|
34
|
+
recorded_at: Mon, 12 Nov 2012 20:20:52 GMT
|
35
|
+
recorded_with: VCR 2.3.0
|
@@ -0,0 +1,40 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://logindev.library.nyu.edu/pds
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: func=get-attribute&attribute=bor_info&calling_system=authpds&pds_handle=12112012141859298424685706599355
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- ! '*/*'
|
12
|
+
User-Agent:
|
13
|
+
- Ruby
|
14
|
+
response:
|
15
|
+
status:
|
16
|
+
code: 200
|
17
|
+
message: OK
|
18
|
+
headers:
|
19
|
+
Date:
|
20
|
+
- Mon, 12 Nov 2012 19:21:04 GMT
|
21
|
+
Server:
|
22
|
+
- Apache/2.2.15 (Unix) mod_ssl/2.2.15 OpenSSL/0.9.8n mod_perl/2.0.4 Perl/v5.8.9
|
23
|
+
Transfer-Encoding:
|
24
|
+
- chunked
|
25
|
+
Content-Type:
|
26
|
+
- text/html; charset=UTF-8
|
27
|
+
body:
|
28
|
+
encoding: US-ASCII
|
29
|
+
string: ! '<?xml version = "1.0" encoding = "UTF-8"?><bor-info><id>N12162279</id><expiry-date>20121031</expiry-date><alpha>L</alpha><birth-date>00000000</birth-date><con-lng>ENG</con-lng><delinq-1>00</delinq-1><delinq-1-update-date>00000000</delinq-1-update-date><delinq-2>03</delinq-2><delinq-2-cat-name>CROWEC</delinq-2-cat-name><delinq-2-update-date>20120619</delinq-2-update-date><delinq-3>00</delinq-3><delinq-3-update-date>00000000</delinq-3-update-date><delinq-n-2>Added
|
30
|
+
to arrears</delinq-n-2><field-2>Added to Arrears 6/19/12 CTC</field-2><home-library>BOBST</home-library><id>N12162279</id><name>DALTON,SCOT
|
31
|
+
THOMAS</name><name-key>dalton scot thomas N12162279</name-key><open-date>20041119</open-date><update-date>20120728</update-date><address-0>DALTON,SCOT
|
32
|
+
THOMAS</address-0><address-1>274 PROSPECT PARK WEST, #2L</address-1><address-2>BROOKLYN</address-2><address-3>NY</address-3><zip>11215</zip><bor-status>51</bor-status><expiry-date>20121031</expiry-date><barcode>21142224061247</barcode><bor-status>51</bor-status><bor-type>CB</bor-type><name>SCOT
|
33
|
+
THOMAS</name><email>std5@nyu.edu</email><cn>DALTON,SCOT THOMAS</cn><givenname>SCOT
|
34
|
+
THOMAS</givenname><sn>DALTON</sn><verification>DALT</verification><nyuidn>N12162279</nyuidn><ill-permission>Y</ill-permission><college_code>GA</college_code><college_name>Graduate
|
35
|
+
School of Arts and Science</college_name><dept_code>CSCI</dept_code><dept_name>DIVISION
|
36
|
+
OF LIBRARIES</dept_name><major_code>GAINFOMS</major_code><major>Information
|
37
|
+
Systems</major><email_address>std5@nyu.edu</email_address><institute>NYU</institute></bor-info>'
|
38
|
+
http_version:
|
39
|
+
recorded_at: Mon, 12 Nov 2012 19:21:04 GMT
|
40
|
+
recorded_with: VCR 2.3.0
|
@@ -0,0 +1,36 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://logindev.library.nyu.edu/pds
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: func=get-attribute&attribute=authenticate&calling_system=authpds&pds_handle=12112012141859298424685706599355
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- ! '*/*'
|
12
|
+
User-Agent:
|
13
|
+
- Ruby
|
14
|
+
response:
|
15
|
+
status:
|
16
|
+
code: 200
|
17
|
+
message: OK
|
18
|
+
headers:
|
19
|
+
Date:
|
20
|
+
- Mon, 12 Nov 2012 19:21:05 GMT
|
21
|
+
Server:
|
22
|
+
- Apache/2.2.15 (Unix) mod_ssl/2.2.15 OpenSSL/0.9.8n mod_perl/2.0.4 Perl/v5.8.9
|
23
|
+
Transfer-Encoding:
|
24
|
+
- chunked
|
25
|
+
Content-Type:
|
26
|
+
- text/html; charset=UTF-8
|
27
|
+
body:
|
28
|
+
encoding: US-ASCII
|
29
|
+
string: <?xml version = "1.0" encoding = "UTF-8"?><authenticate><name>DALTON,SCOT
|
30
|
+
THOMAS</name><id>N12162279</id><proxy-for-id></proxy-for-id><name-key>dalton
|
31
|
+
scot thomas N12162279</name-key><open-date>20041119</open-date><update-date>20120728</update-date><con-lng>ENG</con-lng><alpha>L</alpha><title></title><delinq-1>00</delinq-1><delinq-n-1></delinq-n-1><delinq-1-update-date>00000000</delinq-1-update-date><delinq-1-cat-name></delinq-1-cat-name><delinq-2>03</delinq-2><delinq-n-2>Added
|
32
|
+
to arrears</delinq-n-2><delinq-2-update-date>20120619</delinq-2-update-date><delinq-2-cat-name>CROWEC</delinq-2-cat-name><delinq-3>00</delinq-3><delinq-n-3></delinq-n-3><delinq-3-update-date>00000000</delinq-3-update-date><delinq-3-cat-name></delinq-3-cat-name><budget></budget><profile-id></profile-id><ill-library></ill-library><home-library>BOBST</home-library><field-1></field-1><field-2>Added
|
33
|
+
to Arrears 6/19/12 CTC</field-2><field-3></field-3><birth-date>00000000</birth-date><bor-status>51</bor-status><institute>NYU</institute></authenticate>
|
34
|
+
http_version:
|
35
|
+
recorded_at: Mon, 12 Nov 2012 19:21:05 GMT
|
36
|
+
recorded_with: VCR 2.3.0
|
@@ -0,0 +1,32 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://logindev.library.nyu.edu/pds
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: func=get-attribute&attribute=bor_id&calling_system=authpds&pds_handle=12112012141859298424685706599355
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- ! '*/*'
|
12
|
+
User-Agent:
|
13
|
+
- Ruby
|
14
|
+
response:
|
15
|
+
status:
|
16
|
+
code: 200
|
17
|
+
message: OK
|
18
|
+
headers:
|
19
|
+
Date:
|
20
|
+
- Mon, 12 Nov 2012 19:21:04 GMT
|
21
|
+
Server:
|
22
|
+
- Apache/2.2.15 (Unix) mod_ssl/2.2.15 OpenSSL/0.9.8n mod_perl/2.0.4 Perl/v5.8.9
|
23
|
+
Transfer-Encoding:
|
24
|
+
- chunked
|
25
|
+
Content-Type:
|
26
|
+
- text/html; charset=UTF-8
|
27
|
+
body:
|
28
|
+
encoding: US-ASCII
|
29
|
+
string: <?xml version="1.0" encoding="UTF-8" ?><bor_id><id>N12162279</id><handle>12112012141859298424685706599355</handle><institute>NYU</institute></bor_id>
|
30
|
+
http_version:
|
31
|
+
recorded_at: Mon, 12 Nov 2012 19:21:04 GMT
|
32
|
+
recorded_with: VCR 2.3.0
|
@@ -0,0 +1,40 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://logindev.library.nyu.edu/pds
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: func=get-attribute&attribute=bor_info&calling_system=authpds&pds_handle=12112012141859298424685706599355
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- ! '*/*'
|
12
|
+
User-Agent:
|
13
|
+
- Ruby
|
14
|
+
response:
|
15
|
+
status:
|
16
|
+
code: 200
|
17
|
+
message: OK
|
18
|
+
headers:
|
19
|
+
Date:
|
20
|
+
- Mon, 12 Nov 2012 19:21:04 GMT
|
21
|
+
Server:
|
22
|
+
- Apache/2.2.15 (Unix) mod_ssl/2.2.15 OpenSSL/0.9.8n mod_perl/2.0.4 Perl/v5.8.9
|
23
|
+
Transfer-Encoding:
|
24
|
+
- chunked
|
25
|
+
Content-Type:
|
26
|
+
- text/html; charset=UTF-8
|
27
|
+
body:
|
28
|
+
encoding: US-ASCII
|
29
|
+
string: ! '<?xml version = "1.0" encoding = "UTF-8"?><bor-info><id>N12162279</id><expiry-date>20121031</expiry-date><alpha>L</alpha><birth-date>00000000</birth-date><con-lng>ENG</con-lng><delinq-1>00</delinq-1><delinq-1-update-date>00000000</delinq-1-update-date><delinq-2>03</delinq-2><delinq-2-cat-name>CROWEC</delinq-2-cat-name><delinq-2-update-date>20120619</delinq-2-update-date><delinq-3>00</delinq-3><delinq-3-update-date>00000000</delinq-3-update-date><delinq-n-2>Added
|
30
|
+
to arrears</delinq-n-2><field-2>Added to Arrears 6/19/12 CTC</field-2><home-library>BOBST</home-library><id>N12162279</id><name>DALTON,SCOT
|
31
|
+
THOMAS</name><name-key>dalton scot thomas N12162279</name-key><open-date>20041119</open-date><update-date>20120728</update-date><address-0>DALTON,SCOT
|
32
|
+
THOMAS</address-0><address-1>274 PROSPECT PARK WEST, #2L</address-1><address-2>BROOKLYN</address-2><address-3>NY</address-3><zip>11215</zip><bor-status>51</bor-status><expiry-date>20121031</expiry-date><barcode>21142224061247</barcode><bor-status>51</bor-status><bor-type>CB</bor-type><name>SCOT
|
33
|
+
THOMAS</name><email>std5@nyu.edu</email><cn>DALTON,SCOT THOMAS</cn><givenname>SCOT
|
34
|
+
THOMAS</givenname><sn>DALTON</sn><verification>DALT</verification><nyuidn>N12162279</nyuidn><ill-permission>Y</ill-permission><college_code>GA</college_code><college_name>Graduate
|
35
|
+
School of Arts and Science</college_name><dept_code>CSCI</dept_code><dept_name>DIVISION
|
36
|
+
OF LIBRARIES</dept_name><major_code>GAINFOMS</major_code><major>Information
|
37
|
+
Systems</major><email_address>std5@nyu.edu</email_address><institute>NYU</institute></bor-info>'
|
38
|
+
http_version:
|
39
|
+
recorded_at: Mon, 12 Nov 2012 19:21:04 GMT
|
40
|
+
recorded_with: VCR 2.3.0
|
@@ -0,0 +1,32 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://logindev.library.nyu.edu/pds
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: func=get-attribute&attribute=bor_verification&calling_system=authpds&pds_handle=12112012141859298424685706599355
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- ! '*/*'
|
12
|
+
User-Agent:
|
13
|
+
- Ruby
|
14
|
+
response:
|
15
|
+
status:
|
16
|
+
code: 200
|
17
|
+
message: OK
|
18
|
+
headers:
|
19
|
+
Date:
|
20
|
+
- Mon, 12 Nov 2012 19:21:04 GMT
|
21
|
+
Server:
|
22
|
+
- Apache/2.2.15 (Unix) mod_ssl/2.2.15 OpenSSL/0.9.8n mod_perl/2.0.4 Perl/v5.8.9
|
23
|
+
Transfer-Encoding:
|
24
|
+
- chunked
|
25
|
+
Content-Type:
|
26
|
+
- text/html; charset=UTF-8
|
27
|
+
body:
|
28
|
+
encoding: US-ASCII
|
29
|
+
string: <?xml version="1.0" encoding="UTF-8" ?><bor_verification><id>N12162279</id><verification>d4465aacaa645f2164908cd4184c09f0</verification><handle>12112012141859298424685706599355</handle><institute>NYU</institute></bor_verification>
|
30
|
+
http_version:
|
31
|
+
recorded_at: Mon, 12 Nov 2012 19:21:04 GMT
|
32
|
+
recorded_with: VCR 2.3.0
|
@@ -0,0 +1,33 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://logindev.library.nyu.edu/pds
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: func=get-attribute&attribute=bor_info&calling_system=authpds&pds_handle=Invalid
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- ! '*/*'
|
12
|
+
User-Agent:
|
13
|
+
- Ruby
|
14
|
+
response:
|
15
|
+
status:
|
16
|
+
code: 200
|
17
|
+
message: OK
|
18
|
+
headers:
|
19
|
+
Date:
|
20
|
+
- Mon, 12 Nov 2012 19:21:04 GMT
|
21
|
+
Server:
|
22
|
+
- Apache/2.2.15 (Unix) mod_ssl/2.2.15 OpenSSL/0.9.8n mod_perl/2.0.4 Perl/v5.8.9
|
23
|
+
Transfer-Encoding:
|
24
|
+
- chunked
|
25
|
+
Content-Type:
|
26
|
+
- text/html; charset=UTF-8
|
27
|
+
body:
|
28
|
+
encoding: US-ASCII
|
29
|
+
string: <?xml version="1.0" encoding="UTF-8" ?><pds><error>Error User does not
|
30
|
+
exist</error></pds>
|
31
|
+
http_version:
|
32
|
+
recorded_at: Mon, 12 Nov 2012 19:21:04 GMT
|
33
|
+
recorded_with: VCR 2.3.0
|
@@ -0,0 +1,33 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://logindev.library.nyu.edu/pds
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: func=get-attribute&attribute=bor_info&calling_system=authpds&pds_handle=Invalid
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- ! '*/*'
|
12
|
+
User-Agent:
|
13
|
+
- Ruby
|
14
|
+
response:
|
15
|
+
status:
|
16
|
+
code: 200
|
17
|
+
message: OK
|
18
|
+
headers:
|
19
|
+
Date:
|
20
|
+
- Mon, 12 Nov 2012 19:21:04 GMT
|
21
|
+
Server:
|
22
|
+
- Apache/2.2.15 (Unix) mod_ssl/2.2.15 OpenSSL/0.9.8n mod_perl/2.0.4 Perl/v5.8.9
|
23
|
+
Transfer-Encoding:
|
24
|
+
- chunked
|
25
|
+
Content-Type:
|
26
|
+
- text/html; charset=UTF-8
|
27
|
+
body:
|
28
|
+
encoding: US-ASCII
|
29
|
+
string: <?xml version="1.0" encoding="UTF-8" ?><pds><error>Error User does not
|
30
|
+
exist</error></pds>
|
31
|
+
http_version:
|
32
|
+
recorded_at: Mon, 12 Nov 2012 19:21:04 GMT
|
33
|
+
recorded_with: VCR 2.3.0
|