authpds 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/authpds/session.rb +3 -1
- data/lib/authpds/version.rb +1 -1
- metadata +87 -55
data/lib/authpds/session.rb
CHANGED
@@ -178,7 +178,9 @@ module Authpds
|
|
178
178
|
end
|
179
179
|
|
180
180
|
def authenticate
|
181
|
-
|
181
|
+
# Don't authenticate if the system is inaccessible.
|
182
|
+
# If the application session id is nil, skip this check.
|
183
|
+
return false if controller.cookies["#{self.class.calling_system}_inaccessible".to_sym] == session_id unless session_id.nil?
|
182
184
|
# If PDS session already established, authenticate
|
183
185
|
return true unless pds_user.nil?
|
184
186
|
# Establish a PDS session if the user logged in via an alternative SSO mechanism and this isn't being called after login
|
data/lib/authpds/version.rb
CHANGED
metadata
CHANGED
@@ -1,68 +1,91 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: authpds
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
hash: 25
|
5
5
|
prerelease:
|
6
|
+
segments:
|
7
|
+
- 0
|
8
|
+
- 1
|
9
|
+
- 1
|
10
|
+
version: 0.1.1
|
6
11
|
platform: ruby
|
7
|
-
authors:
|
12
|
+
authors:
|
8
13
|
- Scot Dalton
|
9
14
|
autorequire:
|
10
15
|
bindir: bin
|
11
16
|
cert_chain: []
|
12
|
-
|
13
|
-
|
14
|
-
|
17
|
+
|
18
|
+
date: 2012-09-05 00:00:00 -04:00
|
19
|
+
default_executable:
|
20
|
+
dependencies:
|
21
|
+
- !ruby/object:Gem::Dependency
|
15
22
|
name: rails
|
16
|
-
|
23
|
+
prerelease: false
|
24
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
17
25
|
none: false
|
18
|
-
requirements:
|
26
|
+
requirements:
|
19
27
|
- - ~>
|
20
|
-
- !ruby/object:Gem::Version
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
hash: 15
|
30
|
+
segments:
|
31
|
+
- 3
|
32
|
+
- 2
|
33
|
+
- 0
|
21
34
|
version: 3.2.0
|
22
35
|
type: :runtime
|
23
|
-
|
24
|
-
|
25
|
-
- !ruby/object:Gem::Dependency
|
36
|
+
version_requirements: *id001
|
37
|
+
- !ruby/object:Gem::Dependency
|
26
38
|
name: authlogic
|
27
|
-
|
39
|
+
prerelease: false
|
40
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
28
41
|
none: false
|
29
|
-
requirements:
|
30
|
-
- -
|
31
|
-
- !ruby/object:Gem::Version
|
32
|
-
|
42
|
+
requirements:
|
43
|
+
- - ">="
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
hash: 3
|
46
|
+
segments:
|
47
|
+
- 0
|
48
|
+
version: "0"
|
33
49
|
type: :runtime
|
34
|
-
|
35
|
-
|
36
|
-
- !ruby/object:Gem::Dependency
|
50
|
+
version_requirements: *id002
|
51
|
+
- !ruby/object:Gem::Dependency
|
37
52
|
name: nokogiri
|
38
|
-
|
53
|
+
prerelease: false
|
54
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
39
55
|
none: false
|
40
|
-
requirements:
|
41
|
-
- -
|
42
|
-
- !ruby/object:Gem::Version
|
43
|
-
|
56
|
+
requirements:
|
57
|
+
- - ">="
|
58
|
+
- !ruby/object:Gem::Version
|
59
|
+
hash: 3
|
60
|
+
segments:
|
61
|
+
- 0
|
62
|
+
version: "0"
|
44
63
|
type: :runtime
|
45
|
-
|
46
|
-
|
47
|
-
- !ruby/object:Gem::Dependency
|
64
|
+
version_requirements: *id003
|
65
|
+
- !ruby/object:Gem::Dependency
|
48
66
|
name: sqlite3
|
49
|
-
|
67
|
+
prerelease: false
|
68
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
50
69
|
none: false
|
51
|
-
requirements:
|
52
|
-
- -
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
|
70
|
+
requirements:
|
71
|
+
- - ">="
|
72
|
+
- !ruby/object:Gem::Version
|
73
|
+
hash: 3
|
74
|
+
segments:
|
75
|
+
- 0
|
76
|
+
version: "0"
|
55
77
|
type: :development
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
with PDS to provide single sign-on across systems.
|
60
|
-
email:
|
78
|
+
version_requirements: *id004
|
79
|
+
description: Libraries that use Ex Libris products, can integrate Rails application with PDS to provide single sign-on across systems.
|
80
|
+
email:
|
61
81
|
- scotdalton@gmail.com
|
62
82
|
executables: []
|
83
|
+
|
63
84
|
extensions: []
|
85
|
+
|
64
86
|
extra_rdoc_files: []
|
65
|
-
|
87
|
+
|
88
|
+
files:
|
66
89
|
- lib/authpds/acts_as_authentic.rb
|
67
90
|
- lib/authpds/controllers/authpds_controller.rb
|
68
91
|
- lib/authpds/controllers/authpds_sessions_controller.rb
|
@@ -90,32 +113,41 @@ files:
|
|
90
113
|
- test/unit/pds_test.rb
|
91
114
|
- test/unit/user_session_test.rb
|
92
115
|
- test/unit/user_test.rb
|
116
|
+
has_rdoc: true
|
93
117
|
homepage: http://github.com/scotdalton/authpds
|
94
118
|
licenses: []
|
119
|
+
|
95
120
|
post_install_message:
|
96
121
|
rdoc_options: []
|
97
|
-
|
122
|
+
|
123
|
+
require_paths:
|
98
124
|
- lib
|
99
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
125
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
100
126
|
none: false
|
101
|
-
requirements:
|
102
|
-
- -
|
103
|
-
- !ruby/object:Gem::Version
|
104
|
-
|
105
|
-
|
127
|
+
requirements:
|
128
|
+
- - ">="
|
129
|
+
- !ruby/object:Gem::Version
|
130
|
+
hash: 3
|
131
|
+
segments:
|
132
|
+
- 0
|
133
|
+
version: "0"
|
134
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
106
135
|
none: false
|
107
|
-
requirements:
|
108
|
-
- -
|
109
|
-
- !ruby/object:Gem::Version
|
110
|
-
|
136
|
+
requirements:
|
137
|
+
- - ">="
|
138
|
+
- !ruby/object:Gem::Version
|
139
|
+
hash: 3
|
140
|
+
segments:
|
141
|
+
- 0
|
142
|
+
version: "0"
|
111
143
|
requirements: []
|
144
|
+
|
112
145
|
rubyforge_project:
|
113
|
-
rubygems_version: 1.
|
146
|
+
rubygems_version: 1.4.2
|
114
147
|
signing_key:
|
115
148
|
specification_version: 3
|
116
|
-
summary: Allows applications to use Ex Libris' Patron Directory Service (PDS) for
|
117
|
-
|
118
|
-
test_files:
|
149
|
+
summary: Allows applications to use Ex Libris' Patron Directory Service (PDS) for authentication.
|
150
|
+
test_files:
|
119
151
|
- test/authpds_test.rb
|
120
152
|
- test/fixtures/users.yml
|
121
153
|
- test/support/config/institutions.yml
|