Fixing #179: calling stringify_keys on the extra_attributes hash.
Improve Daniel's work and move stringify_keys to lib/casserver/authenticators/base.rb.
This commit is contained in:
Родитель
81fcd5ffb8
Коммит
698a014aa4
|
@ -38,7 +38,7 @@ module CASServer
|
|||
end
|
||||
|
||||
def extra_attributes
|
||||
@extra_attributes
|
||||
@extra_attributes.stringify_keys
|
||||
end
|
||||
|
||||
protected
|
||||
|
|
|
@ -785,4 +785,4 @@ module CASServer
|
|||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -50,7 +50,7 @@ describe "CASServer::Authenticators::LDAP" do
|
|||
:request => {}
|
||||
).should == true
|
||||
|
||||
auth.extra_attributes.should == {:full_name => 'Test', :address => 'Test'}
|
||||
auth.extra_attributes.should == {"full_name" => 'Test', "address" => 'Test'}
|
||||
end
|
||||
|
||||
end
|
||||
|
|
Загрузка…
Ссылка в новой задаче