Skip to content

Commit 8497353

Browse files
author
Robert Mitwicki
committed
Merge pull request #201 from mitfik/fix/191
Fix #179 and #180
2 parents 6cc0788 + 698a014 commit 8497353

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

lib/casserver/authenticators/base.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def validate(credentials)
3838
end
3939

4040
def extra_attributes
41-
@extra_attributes
41+
@extra_attributes.stringify_keys
4242
end
4343

4444
protected

lib/casserver/server.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -785,4 +785,4 @@ def authenticated_username
785785
end
786786
end
787787
end
788-
end
788+
end

spec/casserver/authenticators/ldap_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
:request => {}
5151
).should == true
5252

53-
auth.extra_attributes.should == {:full_name => 'Test', :address => 'Test'}
53+
auth.extra_attributes.should == {"full_name" => 'Test', "address" => 'Test'}
5454
end
5555

5656
end

spec/casserver_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@
185185
it { should be_ok }
186186
its(:content_type) { should match 'text/xml' }
187187
its(:body) { should match /cas:authenticationSuccess/i }
188-
its(:body) { should match '<test_utf_string>Ютф</test_utf_string>' }
188+
its(:body) { should match '<cas:test_utf_string>Ютф</cas:test_utf_string>' }
189189
end
190190

191191
context 'from unallowed IP' do

0 commit comments

Comments
 (0)