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 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
- @extra_attributes.each do |key, value|
7
- serialize_extra_attribute(xml, key, value)
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
@@ -1,6 +1,6 @@
1
1
  $gemspec = Gem::Specification.new do |s|
2
2
  s.name = 'synapses-cas'
3
- s.version = '0.1.2'
3
+ s.version = '0.1.3'
4
4
  s.authors = ["Synapses Group"]
5
5
  s.email = ["tiago@synapses.com.br"]
6
6
  s.homepage = 'https://github.com/synapsesgroup/synapses-cas'
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.2
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-15 00:00:00.000000000 Z
12
+ date: 2012-05-20 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activerecord