diff options
Diffstat (limited to 'vendor/gems/omniauth-cas3/lib/omniauth/strategies/cas3.rb')
-rw-r--r-- | vendor/gems/omniauth-cas3/lib/omniauth/strategies/cas3.rb | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/vendor/gems/omniauth-cas3/lib/omniauth/strategies/cas3.rb b/vendor/gems/omniauth-cas3/lib/omniauth/strategies/cas3.rb index 7271621c564..441529b67d8 100644 --- a/vendor/gems/omniauth-cas3/lib/omniauth/strategies/cas3.rb +++ b/vendor/gems/omniauth-cas3/lib/omniauth/strategies/cas3.rb @@ -62,9 +62,14 @@ module OmniAuth end extra do - prune!( - raw_info.delete_if{ |k,v| AuthHashSchemaKeys.include?(k) } - ) + hash = {} + + unless skip_info? + hash = raw_info.dup + hash.delete_if { |k, _v| AuthHashSchemaKeys.include?(k) } + end + + prune! hash end uid do |