synapses-cas 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +8 -0
- data/bin/cas_config.yml +1 -1
- data/lib/casserver/views/proxy_validate.builder +7 -2
- data/synapses-cas.gemspec +1 -1
- metadata +2 -2
data/CHANGELOG
CHANGED
@@ -1,3 +1,11 @@
|
|
1
|
+
=== 0.1.3 :: 2012-05-20
|
2
|
+
|
3
|
+
* Allows nullable extra attributes.
|
4
|
+
|
5
|
+
The oficial version of RubyCAS doesn't work if a user tries to login in with an
|
6
|
+
account that contains some null extra attributes.
|
7
|
+
|
8
|
+
|
1
9
|
=== 0.1.2 :: 2012-05-15
|
2
10
|
|
3
11
|
* Button for password recovery has been added in login page.
|
data/bin/cas_config.yml
CHANGED
@@ -239,7 +239,7 @@ authenticator:
|
|
239
239
|
username_column: email
|
240
240
|
# password_column: password_hash
|
241
241
|
encrypt_function: 'user.password_hash == Digest::SHA256.hexdigest("#{@password}#{user.password_salt}") && (user.status == "A")'
|
242
|
-
extra_attributes: name, default_locale, must_change_password
|
242
|
+
extra_attributes: name, default_locale, must_change_password, linkedin_profile
|
243
243
|
#
|
244
244
|
# When replying to a CAS client's validation request, the server will normally
|
245
245
|
# provide the client with the authenticated user's username. However it is
|
@@ -3,8 +3,13 @@ if @success
|
|
3
3
|
xml.tag!("cas:serviceResponse", 'xmlns:cas' => "http://www.yale.edu/tp/cas") do
|
4
4
|
xml.tag!("cas:authenticationSuccess") do
|
5
5
|
xml.tag!("cas:user", @username.to_s)
|
6
|
-
|
7
|
-
|
6
|
+
# Synapses CAS 0.1.3 - Allow nullable extra attributes
|
7
|
+
if !@extra_attributes.blank?
|
8
|
+
@extra_attributes.each do |key, value|
|
9
|
+
if value != nil
|
10
|
+
serialize_extra_attribute(xml, key, value)
|
11
|
+
end
|
12
|
+
end
|
8
13
|
end
|
9
14
|
if @pgtiou
|
10
15
|
xml.tag!("cas:proxyGrantingTicket", @pgtiou.to_s)
|
data/synapses-cas.gemspec
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: synapses-cas
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-05-
|
12
|
+
date: 2012-05-20 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activerecord
|